diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0355275..1349422 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -21,12 +21,13 @@ jobs: submodules: recursive # The image runs as a non-root user, so the mounted workspace must be - # writable. Keep HUGO_VERSION in sync with the Makefile. + # writable. Same tag as the Makefile: `latest`, so site builds always use + # the newest Hugo. Pin a tag here only to debug a version regression. - name: Prepare workspace run: chmod -R a+rwX . - name: Build - uses: docker://ghcr.io/gohugoio/hugo:v0.169.0 + uses: docker://ghcr.io/gohugoio/hugo:latest with: args: --minify diff --git a/AGENTS.md b/AGENTS.md index e3e8b4b..e110013 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,9 +11,14 @@ leadership and engineering management by Stan Nowogrudski. Theme: PaperMod ## Commands -Hugo is **not** installed on the host. Everything runs through the pinned -official Docker image (`HUGO_VERSION` in the `Makefile`, mirrored in -`.gitea/workflows/build.yml`). +Hugo is **not** installed on the host. Everything runs through the official +Docker image `ghcr.io/gohugoio/hugo:latest`, in the `Makefile` and in +`.gitea/workflows/build.yml`. Builds track the newest Hugo; if a new release +breaks the site, pin for the debugging session instead of committing a tag: + +```sh +make check HUGO_IMAGE=ghcr.io/gohugoio/hugo:v0.169.0 +``` ```sh make build # production build into public/ (minified) @@ -91,5 +96,8 @@ Datenschutz/Impressum links now come from `params.footer.text` in `config.yml`. - Two posts (`a-letter-to-my-younger-self`, `appreciation`) are drafts whose bodies are still placeholders. They are not published, but do not "clean them up" without asking — they are the author's unfinished work. +- Builds are intentionally unpinned (`hugo:latest`). A Hugo release can change + output or deprecate theme code between two commits; when that happens, pin via + `HUGO_IMAGE` locally, then bump PaperMod with `make theme-update`. - Deploy still uses password auth; switch to an SSH key and keep the rsync `--delete` semantics. diff --git a/Makefile b/Makefile index d7ebcb3..7fc875e 100644 --- a/Makefile +++ b/Makefile @@ -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)" \