Skip to content

Pin Hugo to 0.164.0 - #41

Open
andrew wants to merge 1 commit into
mainfrom
pin-hugo-version
Open

Pin Hugo to 0.164.0#41
andrew wants to merge 1 commit into
mainfrom
pin-hugo-version

Conversation

@andrew

@andrew andrew commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

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 languageCode with locale and excludes local _vendor contents from Docker builds so Hextra resolves from go.mod.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.0 in GitHub Actions workflows.
  • Switch Docker build stage to the official Hugo image and adjust build paths/ownership handling.
  • Replace deprecated languageCode with locale and 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.

Comment thread Dockerfile
WORKDIR /build
COPY . .
WORKDIR /project
COPY --chown=hugo:hugo . .
Comment thread Dockerfile
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants