build: split workflow in two files
All checks were successful
ci/woodpecker/push/main Pipeline was successful

This commit is contained in:
Aeddis Desauw 2025-01-06 22:34:24 +01:00
parent 189d6a33cd
commit b192e4c6ed
2 changed files with 37 additions and 20 deletions

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:
- 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