Pin Hugo to 0.164.0 - #41
Open
andrew wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Pins the Hugo version used in CI and aligns Docker-based builds with that Hugo release, while updating Hugo configuration for newer Hugo deprecations and adjusting Docker build context to influence Hugo Module resolution.
Changes:
- Pin Hugo to
0.164.0in GitHub Actions workflows. - Switch Docker build stage to the official Hugo image and adjust build paths/ownership handling.
- Replace deprecated
languageCodewithlocaleand exclude_vendor/from Docker build context.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
hugo.yaml |
Replaces deprecated languageCode with locale. |
Dockerfile |
Switches builder base image to Hugo v0.164.0, updates workdir/copy behavior, and adjusts output copy path. |
.github/workflows/pages.yml |
Pins Hugo version to 0.164.0 for Pages deploy workflow. |
.github/workflows/build.yml |
Pins Hugo version to 0.164.0 for PR/push build workflow. |
.dockerignore |
Excludes _vendor/ from Docker build context. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| WORKDIR /build | ||
| COPY . . | ||
| WORKDIR /project | ||
| COPY --chown=hugo:hugo . . |
Comment on lines
+1
to
6
| FROM ghcr.io/gohugoio/hugo:v0.164.0 AS builder | ||
|
|
||
| RUN apk add --no-cache git hugo | ||
|
|
||
| WORKDIR /build | ||
| COPY . . | ||
| WORKDIR /project | ||
| COPY --chown=hugo:hugo . . | ||
|
|
||
| RUN hugo --minify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins Hugo 0.164.0 in GitHub Actions and uses the matching official Hugo image for Docker builds. This keeps CI and container builds on the same release.
Also replaces deprecated
languageCodewithlocaleand excludes local_vendorcontents from Docker builds so Hextra resolves fromgo.mod.