Build with the latest Hugo instead of a pinned release
Build and deploy the poweronoff.click hugo / build (push) Successful in 43s

Use ghcr.io/gohugoio/hugo:latest in CI and locally, so the site always builds
with the current Hugo release (currently v0.169.0). HUGO_IMAGE stays overridable
for debugging a version regression.

Trade-off: builds are no longer reproducible. If an upstream release breaks the
build, pin HUGO_IMAGE locally, then bump PaperMod with `make theme-update`.
This commit is contained in:
morpheus committed 2026-11-06 10:29:33 +01:00
1 parent b59b3bca78
commit c378349cff
3 files changed
+19 -9

No files matched your search

+5 -4
View File
@@ -1,10 +1,11 @@
# Local build helpers. The Hugo binary is not installed on the host: every
# target runs the pinned official image so local and CI builds match.
# target runs the official Docker image, same tag as CI (`latest`).
#
# Keep HUGO_VERSION in sync with the image tag in .gitea/workflows/build.yml.
# `latest` moves without warning. To reproduce a build from an older point in
# time, override the image explicitly, e.g.:
# make check HUGO_IMAGE=ghcr.io/gohugoio/hugo:v0.169.0
HUGO_VERSION ?= 0.169.0
HUGO_IMAGE ?= ghcr.io/gohugoio/hugo:v$(HUGO_VERSION)
HUGO_IMAGE ?= ghcr.io/gohugoio/hugo:latest
# --user keeps public/ owned by you instead of root (CI works around this with chmod).
DOCKER_RUN = docker run --rm \
-u "$(shell id -u):$(shell id -g)" \