2024-10-05 22:09:24 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
event: [tag, push, release, deployment, cron, manual]
|
|
|
|
branch: [main]
|
2024-04-23 21:37:33 +00:00
|
|
|
steps:
|
|
|
|
- name: build hugo
|
2024-11-09 02:49:16 +00:00
|
|
|
image: alpine:3.20.3
|
2024-04-23 21:37:33 +00:00
|
|
|
commands:
|
2024-04-24 18:59:25 +00:00
|
|
|
- export UMAMI_DOMAIN=$UMAMI_DOMAIN
|
|
|
|
- export UMAMI_ID=$UMAMI_ID
|
2024-04-23 21:37:33 +00:00
|
|
|
- apk update
|
|
|
|
- apk add hugo
|
|
|
|
- hugo -b 'https://music.guerilla.studio'
|
2024-04-24 18:59:25 +00:00
|
|
|
secrets: [ 'umami_domain', 'umami_id' ]
|
2024-04-23 21:37:33 +00:00
|
|
|
|
|
|
|
- name: upload
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
2024-11-09 02:49:16 +00:00
|
|
|
image: woodpeckerci/s3
|
2024-04-23 21:37:33 +00:00
|
|
|
settings:
|
|
|
|
bucket: music.guerilla.studio
|
|
|
|
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
|