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

+11 -3
View File
@@ -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.