build: split workflow in two files
All checks were successful
ci/woodpecker/push/main Pipeline was successful
All checks were successful
ci/woodpecker/push/main Pipeline was successful
This commit is contained in:
parent
189d6a33cd
commit
b192e4c6ed
2 changed files with 37 additions and 20 deletions
29
.woodpecker/main.yaml
Normal file
29
.woodpecker/main.yaml
Normal 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/
|
|
@ -1,3 +1,11 @@
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
- manual
|
||||||
|
branch:
|
||||||
|
- preprod
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: alpine:3.17.2
|
image: alpine:3.17.2
|
||||||
|
@ -7,26 +15,6 @@ steps:
|
||||||
- zola build
|
- zola build
|
||||||
|
|
||||||
- name: upload
|
- 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
|
image: plugins/s3
|
||||||
settings:
|
settings:
|
||||||
bucket: preprod-guide
|
bucket: preprod-guide
|
Loading…
Reference in a new issue