From 924ff4769a0c4361015306855bfed0ad1d7d51cb Mon Sep 17 00:00:00 2001 From: Aeddis Desauw Date: Fri, 13 Dec 2024 23:10:37 +0100 Subject: [PATCH] rollback .woodpecker.yaml --- .woodpecker.yaml | 51 ++++++++++++++++++++++++++++++++++++------------ 1 file 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 + image: alpine:3.17.2 commands: - - echo "This is the build step" - - echo "binary-data-123" > executable - - name: a-test-step - image: golang:1.16 - 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