aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAeddis Desauw <aeddis@deuxfleurs.fr>2024-12-13 23:11:11 +0100
committerAeddis Desauw <aeddis@deuxfleurs.fr>2024-12-13 23:11:11 +0100
commitc9d8d26dd372289d705f4a64c742faad6b26690c (patch)
tree9caa69587189d9f1a721a31c97dd8d360859b39a
parent73a52e6117b0ffc15136bbb18405ba36df218884 (diff)
downloadguide.deuxfleurs.fr-c9d8d26dd372289d705f4a64c742faad6b26690c.tar.gz
guide.deuxfleurs.fr-c9d8d26dd372289d705f4a64c742faad6b26690c.zip
rollback .woodpecker.yamlaeddis-refonte
-rw-r--r--.woodpecker.yaml51
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