From 6bdf0f92ca5a8513e6ef6871f425d86e1a41a0b3 Mon Sep 17 00:00:00 2001 From: June Date: Wed, 23 Jul 2025 21:26:03 +0200 Subject: [PATCH 1/4] switch to upstream hugo image --- .forgejo/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 25ff1e8..47bb47e 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -13,7 +13,7 @@ jobs: build: runs-on: docker container: - image: registry.gitlab.com/pages/hugo/hugo_extended:latest + image: ghcr.io/gohugoio/hugo:v0.148.1 steps: - name: Pipeline info run: | From f8ce07ff9a1d3dec0fbf141801c2af8c1927c93f Mon Sep 17 00:00:00 2001 From: June Date: Wed, 23 Jul 2025 21:30:45 +0200 Subject: [PATCH 2/4] use latest node image --- .forgejo/workflows/cleanup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/cleanup.yaml b/.forgejo/workflows/cleanup.yaml index bf17be8..4b5256d 100644 --- a/.forgejo/workflows/cleanup.yaml +++ b/.forgejo/workflows/cleanup.yaml @@ -7,7 +7,7 @@ jobs: cleanup-staging: runs-on: docker container: - image: code.forgejo.org/oci/node:20-bookworm + image: code.forgejo.org/oci/node:22-bookworm steps: - name: Pipeline info PR run: | From e8c12cf9520876214a954efeea6dde98f28e67fb Mon Sep 17 00:00:00 2001 From: June Date: Wed, 23 Jul 2025 21:32:10 +0200 Subject: [PATCH 3/4] wip --- .forgejo/workflows/deploy.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 47bb47e..d7a00fa 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -10,15 +10,20 @@ env: TZ: Europe/Berlin jobs: - build: + pipeline-info: runs-on: docker container: - image: ghcr.io/gohugoio/hugo:v0.148.1 + image: code.forgejo.org/oci/node:22-bookworm steps: - name: Pipeline info run: | echo "Run triggered by ${{ github.event_name }} (${{ github.event.action }}) on ref ${{ github.ref_name }}" + build: + runs-on: docker + container: + image: ghcr.io/gohugoio/hugo:v0.148.1 + steps: - name: Install packages run: | apk update From 77842e2db2a76ddf9ad08747fb85f7034f3741a5 Mon Sep 17 00:00:00 2001 From: June Date: Wed, 23 Jul 2025 21:55:21 +0200 Subject: [PATCH 4/4] switch to hugomods hugo debian-node-lts image As the GitLab documentation also uses a hugomods image and as we're already using one in other repos, switch to it. https://docs.gitlab.com/tutorials/hugo/#add-your-gitlab-configuration-options https://docker.hugomods.com/ https://github.com/hugomods/docker https://hub.docker.com/r/hugomods/hugo --- .forgejo/workflows/deploy.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 25ff1e8..affec8f 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -13,7 +13,7 @@ jobs: build: runs-on: docker container: - image: registry.gitlab.com/pages/hugo/hugo_extended:latest + image: hugomods/hugo:debian-node-lts-0.148.1 steps: - name: Pipeline info run: | @@ -21,13 +21,11 @@ jobs: - name: Install packages run: | - apk update - # For CI actions. - apk add nodejs-current + apt update # For website build. - apk add tzdata coreutils curl jq git + apt install -y curl jq git # For uploading. - apk add rsync openssh + apt install -y rsync ssh - uses: actions/checkout@v4 with: