hello world ci on main
This commit is contained in:
parent
b8168e1db2
commit
7f9128e085
1 changed files with 12 additions and 39 deletions
|
@ -1,42 +1,15 @@
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: alpine:3.17.2
|
image: debian
|
||||||
commands:
|
commands:
|
||||||
- apk update
|
- echo "This is the build step"
|
||||||
- apk add zola
|
- echo "binary-data-123" > executable
|
||||||
- zola build
|
- name: a-test-step
|
||||||
|
image: golang:1.16
|
||||||
- name: upload
|
commands:
|
||||||
when:
|
- echo "Testing ..."
|
||||||
branch:
|
- ./executable
|
||||||
- main
|
|
||||||
image: plugins/s3
|
|
||||||
settings:
|
|
||||||
bucket: guide.deuxfleurs.fr
|
|
||||||
endpoint: https://garage.deuxfleurs.fr
|
|
||||||
region: garage
|
|
||||||
access_key:
|
|
||||||
from_secret: aws_access_key_id
|
|
||||||
secret_key:
|
|
||||||
from_secret: aws_secret_access_key
|
|
||||||
source: public/**/*
|
|
||||||
target: /
|
|
||||||
strip_prefix: public/
|
|
||||||
|
|
||||||
- name: upload
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- preprod
|
|
||||||
image: plugins/s3
|
|
||||||
settings:
|
|
||||||
bucket: preprod-guide
|
|
||||||
endpoint: https://garage.deuxfleurs.fr
|
|
||||||
region: garage
|
|
||||||
access_key:
|
|
||||||
from_secret: aws_access_key_id
|
|
||||||
secret_key:
|
|
||||||
from_secret: aws_secret_access_key
|
|
||||||
source: public/**/*
|
|
||||||
target: /
|
|
||||||
strip_prefix: public/
|
|
||||||
path_style: true
|
|
||||||
|
|
Loading…
Reference in a new issue