Use anonymously pullable CI images

This commit is contained in:
2026-08-22 11:29:15 +01:00
parent 56d97f13af
commit 25aefe90d6
3 changed files with 12 additions and 22 deletions
+6 -15
View File
@@ -3,7 +3,7 @@
# Notes for anyone editing this file: # Notes for anyone editing this file:
# #
# Custom runner image # 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). # (recipe: https://gitea.dcglab.co.uk/steve/ci/src/branch/main/images/ci-runner-go).
# That image already ships: # That image already ships:
# * Go on PATH at /usr/local/go/bin (so `actions/setup-go` is # * Go on PATH at /usr/local/go/bin (so `actions/setup-go` is
@@ -11,8 +11,8 @@
# otherwise re-download Go on every job) # otherwise re-download Go on every job)
# * Node.js + npm (used by docs / e2e workflows) # * Node.js + npm (used by docs / e2e workflows)
# * Docker CLI, Buildx, Compose v2 (used by docker-build steps) # * Docker CLI, Buildx, Compose v2 (used by docker-build steps)
# When bumping the Go floor, push a new ci-runner-go image with # The runner image is intentionally tracked via `latest`: it is shared CI
# the matching Go version and bump the date pin in IMAGE below. # infrastructure, and updates should propagate to consuming repositories.
# #
# Self-hosted runner expectations # Self-hosted runner expectations
# Each runner host bind-mounts persistent volumes for # Each runner host bind-mounts persistent volumes for
@@ -71,10 +71,7 @@ jobs:
name: Test (${{ matrix.name }}) name: Test (${{ matrix.name }})
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 image: docker.dcglab.co.uk/public/ci-runner-go:latest
credentials:
username: ${{ secrets.ZOT_USERNAME }}
password: ${{ secrets.ZOT_PASSWORD }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -110,10 +107,7 @@ jobs:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 image: docker.dcglab.co.uk/public/ci-runner-go:latest
credentials:
username: ${{ secrets.ZOT_USERNAME }}
password: ${{ secrets.ZOT_PASSWORD }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v7 - uses: golangci/golangci-lint-action@v7
@@ -130,10 +124,7 @@ jobs:
name: Build (${{ matrix.goos }}/${{ matrix.goarch }}) name: Build (${{ matrix.goos }}/${{ matrix.goarch }})
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 image: docker.dcglab.co.uk/public/ci-runner-go:latest
credentials:
username: ${{ secrets.ZOT_USERNAME }}
password: ${{ secrets.ZOT_PASSWORD }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
e2e: e2e:
name: Playwright vs docker-compose name: Playwright vs docker-compose
runs-on: ubuntu-latest 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 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
+5 -6
View File
@@ -12,7 +12,9 @@
# plus install.sh / install.ps1 / the systemd unit baked in under # plus install.sh / install.ps1 / the systemd unit baked in under
# /opt/restic-manager/dist (the read-only fallback path the server # /opt/restic-manager/dist (the read-only fallback path the server
# handlers use when <DataDir>/... is empty). # handlers use when <DataDir>/... 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 fan-out
# * tag push: :vX.Y.Z, :X.Y, :X # * tag push: :vX.Y.Z, :X.Y, :X
@@ -29,7 +31,7 @@ on:
env: env:
REGISTRY: docker.dcglab.co.uk REGISTRY: docker.dcglab.co.uk
IMAGE_NAME: restic-manager IMAGE_NAME: public/restic-manager
# Force bash as the default shell — see ci.yml header. # Force bash as the default shell — see ci.yml header.
defaults: defaults:
@@ -41,10 +43,7 @@ jobs:
name: Build + push image name: Build + push image
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: docker.dcglab.co.uk/ci-runner-go:2026-05-15 image: docker.dcglab.co.uk/public/ci-runner-go:latest
credentials:
username: ${{ secrets.ZOT_USERNAME }}
password: ${{ secrets.ZOT_PASSWORD }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4