diff options
author | Aeddis Desauw <aeddis@deuxfleurs.fr> | 2024-12-13 23:06:19 +0100 |
---|---|---|
committer | Aeddis Desauw <aeddis@deuxfleurs.fr> | 2024-12-13 23:06:19 +0100 |
commit | b8168e1db28cc121804e08d73e97bdd1850cc608 (patch) | |
tree | 264e6ddcb248d6fb9ba16e8f2ff4d1f70c48ace4 /.woodpecker.yaml | |
parent | b115450cd6bec426494d6b0942585b43b90388b5 (diff) | |
download | guide.deuxfleurs.fr-b8168e1db28cc121804e08d73e97bdd1850cc608.tar.gz guide.deuxfleurs.fr-b8168e1db28cc121804e08d73e97bdd1850cc608.zip |
rollback .woodpecker.yaml
Diffstat (limited to '.woodpecker.yaml')
-rw-r--r-- | .woodpecker.yaml | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 1754e21..67463b6 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,15 +1,42 @@ -when: - - event: push - branch: main - steps: - name: build - image: debian - commands: - - echo "This is the build step" - - echo "binary-data-123" > executable - - name: a-test-step - image: golang:1.16 + image: alpine:3.17.2 commands: - - echo "Testing ..." - - ./executable + - apk update + - apk add zola + - zola build + + - name: upload + 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 |