aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAeddis Desauw <aeddis@deuxfleurs.fr>2025-01-06 22:09:51 +0100
committerAeddis Desauw <aeddis@deuxfleurs.fr>2025-01-06 22:09:51 +0100
commit189d6a33cd572ac3ba1dbe480164aad16da681fe (patch)
tree2def77f928999d574c002112b60cbcd1bcdc7075
parent2e166bb6c1e6e0d3049418de85ec39d6ea2bba9b (diff)
downloadguide.deuxfleurs.fr-189d6a33cd572ac3ba1dbe480164aad16da681fe.tar.gz
guide.deuxfleurs.fr-189d6a33cd572ac3ba1dbe480164aad16da681fe.zip
rollback .woodpecker.yaml
-rw-r--r--.woodpecker.yaml50
1 files changed, 39 insertions, 11 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml
index 99c5132..67463b6 100644
--- a/.woodpecker.yaml
+++ b/.woodpecker.yaml
@@ -1,14 +1,42 @@
-when:
- - event: push
- branch: main
-
steps:
- name: build
- image: debian
- commands:
- - echo "This is the build step"
- - 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