rollback .woodpecker.yaml
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aeddis Desauw 2025-01-06 22:09:51 +01:00
parent 2e166bb6c1
commit 189d6a33cd

View file

@ -1,14 +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
- name: a-test-step - apk add zola
image: golang:1.16 - zola build
commands:
- echo "Testing ..." - name: upload
- ./executable when:
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