Use Go container for Gitea workflows
Some checks failed
Publish / Test, build, and push image (push) Failing after 25s
Some checks failed
Publish / Test, build, and push image (push) Failing after 25s
This commit is contained in:
parent
c3ca8a6862
commit
3abece6f4b
@ -9,15 +9,12 @@ jobs:
|
|||||||
lint-test:
|
lint-test:
|
||||||
name: Lint and test
|
name: Lint and test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: golang:1.24-bookworm
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: |
|
run: |
|
||||||
files="$(gofmt -l .)"
|
files="$(gofmt -l .)"
|
||||||
|
|||||||
@ -9,15 +9,12 @@ jobs:
|
|||||||
build-push:
|
build-push:
|
||||||
name: Test, build, and push image
|
name: Test, build, and push image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: golang:1.24-bookworm
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: |
|
run: |
|
||||||
files="$(gofmt -l .)"
|
files="$(gofmt -l .)"
|
||||||
@ -45,7 +42,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Log in to registry
|
- name: Log in to registry
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login k3crpi.jumpingcrab.com \
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login k3crpi.jumpingcrab.com:5000 \
|
||||||
--username "${{ secrets.REGISTRY_USERNAME }}" \
|
--username "${{ secrets.REGISTRY_USERNAME }}" \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user