From 9e6c2fa1ad6124e4185c4ee6d89a761bd54a2b69 Mon Sep 17 00:00:00 2001 From: Tixie Date: Mon, 22 Apr 2024 10:56:30 +0200 Subject: [PATCH] Add Woodpecker config --- .woodpecker.yaml | 25 +++++++++++++++++++++++++ layouts/_default/baseof.html | 1 - 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..2f0e718 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,25 @@ +steps: + - name: build hugo + image: alpine:3.19.1 + commands: + - apk update + - apk add hugo + - hugo -b 'https://now-playing.web.deuxfleurs.fr' + + - name: upload + when: + branch: + - deploy-to-deuxfleurs + image: plugins/s3 + settings: + bucket: now-playing + 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 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5c4dbe7..dbb7e12 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -43,7 +43,6 @@ {{ end }} {{ $opts := dict - "transpiler" "dartsass" "vars" site.Params.styles "enableSourceMap" (not hugo.IsProduction) }}