Let ko install pick its Go toolchain #185

Merged
benvin merged 1 commits from benvin/fix-ko-toolchain into master 2026-11-21 00:03:56 +11:00
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -56,6 +56,8 @@ jobs:
go-version-file: go.mod
- run: go build ./...
- run: go install github.com/google/ko@v0.19.1
env:
GOTOOLCHAIN: auto
- run: ko build --push=false --bare --platform linux/amd64 ./cmd/artifactapi
env:
KO_DOCKER_REPO: ghcr.io/iuclabs/artifactapi
+2
View File
@@ -24,6 +24,8 @@ jobs:
- run: |
go install github.com/google/ko@v0.19.1
go install github.com/google/go-containerregistry/cmd/crane@v0.22.1
env:
GOTOOLCHAIN: auto
- run: echo "${GITHUB_TOKEN}" | crane auth login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}