Split workflow in two files #40

Merged
aeddis merged 1 commit from ci/clean_woodpecker into main 2025-01-06 21:35:28 +00:00
2 changed files with 37 additions and 20 deletions
Showing only changes of commit d3ce6e2617 - Show all commits

29
.woodpecker/main.yaml Normal file
View file

@ -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/

View file

@ -1,3 +1,11 @@
when:
event:
- push
- pull_request
- manual
branch:
- main
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