rollback .woodpecker.yaml

This commit is contained in:
Aeddis Desauw 2024-12-13 23:10:37 +01:00
parent 7f9128e085
commit 924ff4769a

View file

@ -1,15 +1,42 @@
when:
- event: push
branch: main
steps: steps:
- name: build - name: build
image: debian image: alpine:3.17.2
commands: commands:
- echo "This is the build step" - apk update
- echo "binary-data-123" > executable - apk add zola
- name: a-test-step - zola build
image: golang:1.16
commands: - name: upload
- echo "Testing ..." when:
- ./executable branch:
- 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