2024-04-23 21:37:33 +00:00
|
|
|
steps:
|
|
|
|
- name: build hugo
|
|
|
|
image: alpine:3.19.1
|
|
|
|
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
|
|
|
|
image: plugins/s3
|
|
|
|
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
|