From ac277805b20191daacf1ad6ceef8e3a6b9b677f4 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Sat, 8 Aug 2026 21:37:23 +0100 Subject: [PATCH] Pin Hugo to 0.164.0 --- .dockerignore | 1 + .github/workflows/build.yml | 2 +- .github/workflows/pages.yml | 2 +- Dockerfile | 10 ++++------ hugo.yaml | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..92d8b77 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +_vendor/ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43128ec..c761bc8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 # v3.2.1 with: - hugo-version: 'latest' + hugo-version: '0.164.0' extended: true - name: Build diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 812e31b..9945047 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 # v3.2.1 with: - hugo-version: 'latest' + hugo-version: '0.164.0' extended: true - name: Setup Pages diff --git a/Dockerfile b/Dockerfile index 7d40ae4..d5a0b33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,10 @@ -FROM golang:1.26.5-alpine AS builder +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 FROM nginx:alpine -COPY --from=builder /build/public /usr/share/nginx/html +COPY --from=builder /project/public /usr/share/nginx/html EXPOSE 80 diff --git a/hugo.yaml b/hugo.yaml index 1afaad8..55bb5b9 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,5 +1,5 @@ baseURL: https://git-pkgs.dev/ -languageCode: en-us +locale: en-US title: git-pkgs module: