Fix CI: remove golang container, install Go in-step
All checks were successful
Release / build (push) Successful in 1m25s

The golang:1.23 container image lacks Node.js, causing
actions/checkout@v4 to fail. Use the default runner image
(which has Node) and install Go manually.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Axel Meyer
2026-02-26 15:28:52 +00:00
parent 7f17a40b7c
commit 5b0366f16b

View File

@@ -8,8 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.23
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -17,6 +15,13 @@ jobs:
- name: Extract version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Install Go
run: |
curl -sSL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz -o /tmp/go.tar.gz
tar -C /usr/local -xzf /tmp/go.tar.gz
echo "/usr/local/go/bin" >> $GITHUB_PATH
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Install nfpm
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest