aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.woodpecker/main.yaml29
-rw-r--r--.woodpecker/preprod.yaml (renamed from .woodpecker.yaml)28
2 files changed, 37 insertions, 20 deletions
diff --git a/.woodpecker/main.yaml b/.woodpecker/main.yaml
new file mode 100644
index 0000000..bb15327
--- /dev/null
+++ b/.woodpecker/main.yaml
@@ -0,0 +1,29 @@
+when:
+ event:
+ - push
+ - pull_request
+ - manual
+ branch:
+ - main
+
+steps:
+ - name: build
+ image: alpine:3.17.2
+ commands:
+ - apk update
+ - apk add zola
+ - zola build
+
+ - name: upload
+ 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/
diff --git a/.woodpecker.yaml b/.woodpecker/preprod.yaml
index 67463b6..1b41c33 100644
--- a/.woodpecker.yaml
+++ b/.woodpecker/preprod.yaml
@@ -1,3 +1,11 @@
+when:
+ event:
+ - push
+ - pull_request
+ - manual
+ branch:
+ - preprod
+
steps:
- name: build
image: alpine:3.17.2
@@ -7,26 +15,6 @@ steps:
- 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