From 3abece6f4be9d0cc5b2601d8322da7e6871909db Mon Sep 17 00:00:00 2001 From: V Date: Sat, 16 May 2026 21:33:25 +0100 Subject: [PATCH] Use Go container for Gitea workflows --- .gitea/workflows/ci.yml | 7 ++----- .gitea/workflows/publish.yml | 9 +++------ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 226b667..fc89229 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,15 +9,12 @@ jobs: lint-test: name: Lint and test runs-on: ubuntu-latest + container: + image: golang:1.24-bookworm steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - name: Check formatting run: | files="$(gofmt -l .)" diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 6b42b7f..18e1a4a 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -9,15 +9,12 @@ jobs: build-push: name: Test, build, and push image runs-on: ubuntu-latest + container: + image: golang:1.24-bookworm steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - name: Check formatting run: | files="$(gofmt -l .)" @@ -45,7 +42,7 @@ jobs: - name: Log in to registry run: | - echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login k3crpi.jumpingcrab.com \ + echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login k3crpi.jumpingcrab.com:5000 \ --username "${{ secrets.REGISTRY_USERNAME }}" \ --password-stdin