From 25aefe90d64706f4508058545c147ec2f8211e71 Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Sat, 22 Aug 2026 11:29:15 +0100 Subject: [PATCH] Use anonymously pullable CI images --- .gitea/workflows/ci.yml | 21 ++++++--------------- .gitea/workflows/e2e.yml | 2 +- .gitea/workflows/release.yml | 11 +++++------ 3 files changed, 12 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 42fc30d..b91474b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,7 +3,7 @@ # Notes for anyone editing this file: # # Custom runner image -# Every job runs inside `gitea.dcglab.co.uk/steve/ci-runner-go` +# Every job runs inside `docker.dcglab.co.uk/public/ci-runner-go:latest` # (recipe: https://gitea.dcglab.co.uk/steve/ci/src/branch/main/images/ci-runner-go). # That image already ships: # * Go on PATH at /usr/local/go/bin (so `actions/setup-go` is @@ -11,8 +11,8 @@ # otherwise re-download Go on every job) # * Node.js + npm (used by docs / e2e workflows) # * Docker CLI, Buildx, Compose v2 (used by docker-build steps) -# When bumping the Go floor, push a new ci-runner-go image with -# the matching Go version and bump the date pin in IMAGE below. +# The runner image is intentionally tracked via `latest`: it is shared CI +# infrastructure, and updates should propagate to consuming repositories. # # Self-hosted runner expectations # Each runner host bind-mounts persistent volumes for @@ -71,10 +71,7 @@ jobs: name: Test (${{ matrix.name }}) runs-on: ubuntu-latest container: - image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 - credentials: - username: ${{ secrets.ZOT_USERNAME }} - password: ${{ secrets.ZOT_PASSWORD }} + image: docker.dcglab.co.uk/public/ci-runner-go:latest strategy: fail-fast: false matrix: @@ -110,10 +107,7 @@ jobs: name: Lint runs-on: ubuntu-latest container: - image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 - credentials: - username: ${{ secrets.ZOT_USERNAME }} - password: ${{ secrets.ZOT_PASSWORD }} + image: docker.dcglab.co.uk/public/ci-runner-go:latest steps: - uses: actions/checkout@v4 - uses: golangci/golangci-lint-action@v7 @@ -130,10 +124,7 @@ jobs: name: Build (${{ matrix.goos }}/${{ matrix.goarch }}) runs-on: ubuntu-latest container: - image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 - credentials: - username: ${{ secrets.ZOT_USERNAME }} - password: ${{ secrets.ZOT_PASSWORD }} + image: docker.dcglab.co.uk/public/ci-runner-go:latest strategy: fail-fast: false matrix: diff --git a/.gitea/workflows/e2e.yml b/.gitea/workflows/e2e.yml index 4181ecc..79e3d0b 100644 --- a/.gitea/workflows/e2e.yml +++ b/.gitea/workflows/e2e.yml @@ -31,7 +31,7 @@ jobs: e2e: name: Playwright vs docker-compose runs-on: ubuntu-latest - container: gitea.dcglab.co.uk/steve/ci-runner-go:2026-05-08 + container: docker.dcglab.co.uk/public/ci-runner-go:latest timeout-minutes: 15 steps: - uses: actions/checkout@v4 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 387e4ba..694cf95 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -12,7 +12,9 @@ # plus install.sh / install.ps1 / the systemd unit baked in under # /opt/restic-manager/dist (the read-only fallback path the server # handlers use when /... is empty). -# * Pushes to zot OCI registry (docker.dcglab.co.uk). +# * Pushes to the public namespace in the zot OCI registry +# (docker.dcglab.co.uk/public/restic-manager). Pulls are anonymous; +# pushes remain authenticated. # # Tag fan-out # * tag push: :vX.Y.Z, :X.Y, :X @@ -29,7 +31,7 @@ on: env: REGISTRY: docker.dcglab.co.uk - IMAGE_NAME: restic-manager + IMAGE_NAME: public/restic-manager # Force bash as the default shell — see ci.yml header. defaults: @@ -41,10 +43,7 @@ jobs: name: Build + push image runs-on: ubuntu-latest container: - image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 - credentials: - username: ${{ secrets.ZOT_USERNAME }} - password: ${{ secrets.ZOT_PASSWORD }} + image: docker.dcglab.co.uk/public/ci-runner-go:latest steps: - uses: actions/checkout@v4