From b192e4c6ed0fc74fafa928640cc42cbc3416dd46 Mon Sep 17 00:00:00 2001 From: Aeddis Desauw Date: Mon, 6 Jan 2025 22:34:24 +0100 Subject: build: split workflow in two files --- .woodpecker.yaml | 42 ------------------------------------------ .woodpecker/main.yaml | 29 +++++++++++++++++++++++++++++ .woodpecker/preprod.yaml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 42 deletions(-) delete mode 100644 .woodpecker.yaml create mode 100644 .woodpecker/main.yaml create mode 100644 .woodpecker/preprod.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml deleted file mode 100644 index 67463b6..0000000 --- a/.woodpecker.yaml +++ /dev/null @@ -1,42 +0,0 @@ -steps: - - name: build - image: alpine:3.17.2 - commands: - - 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 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/preprod.yaml b/.woodpecker/preprod.yaml new file mode 100644 index 0000000..1b41c33 --- /dev/null +++ b/.woodpecker/preprod.yaml @@ -0,0 +1,30 @@ +when: + event: + - push + - pull_request + - manual + branch: + - preprod + +steps: + - name: build + image: alpine:3.17.2 + commands: + - apk update + - apk add zola + - zola build + + - name: upload + 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 -- cgit v1.2.3