test mdwiki
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-04-14 21:19:32 +02:00
parent 4db75d28a6
commit 5c7ee2266a

View File

@ -1,16 +1,5 @@
# 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/layouts/partials/releasetag.html
RUN if [ "$BASE_URL" = ""]; then hugo; else hugo -b $BASE_URL; fi
# server
FROM nginx:alpine3.21
COPY --from=builder /src/public /usr/share/nginx/html
COPY ./content /usr/share/nginx/html
# ------------
# prepare for rootless operations
RUN \