release teag

This commit is contained in:
2025-01-13 12:50:24 +01:00
parent c1f836579c
commit 7d91e1e25c
4 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,11 @@
# builder
FROM hugomods/hugo:base-non-root AS builder
ARG BASE_URL ""
ARG RELEASETAG "unset"
# --chown is required since kaniko in woodpecker otherwise copies as root and
# the hugo command below fails since it is executed as hugo
COPY --chown=hugo:hugo content/ /src
RUN sed -i 's/%RELEASETAG%/'${RELEASETAG}'/' /src/content/about.md
RUN if [ "$BASE_URL" = ""]; then hugo; else hugo -b $BASE_URL; fi
# server