Use Go container for Gitea workflows
Some checks failed
Publish / Test, build, and push image (push) Failing after 25s

This commit is contained in:
V 2026-05-16 21:33:25 +01:00
parent c3ca8a6862
commit 3abece6f4b
2 changed files with 5 additions and 11 deletions

View File

@ -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 .)"

View File

@ -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