Try building go with ko #2

Merged
patlu merged 11 commits from patlu/action-runner-demo:build_go into main 2024-06-28 07:05:24 +00:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 03e0cd6f33 - Show all commits

View file

@ -10,10 +10,11 @@ jobs:
- uses: https://github.com/actions/setup-go@v5 - uses: https://github.com/actions/setup-go@v5
with: with:
go-version: '1.22.4' go-version: '1.22.4'
- run: echo All Good
- uses: https://github.com/ko-build/setup-ko@v0.7 - uses: https://github.com/ko-build/setup-ko@v0.7
with: with:
version: v0.15.4 version: v0.15.4
- run: ko build - run: |
echo "${{ secrets.CI_SUNET_CDN }}" | ko login https://platform.sunet.se --username ci-sunet-cdn --password-stdin
ko build
env: env:
KO_DOCKER_REPO: ko.local KO_DOCKER_REPO: platform.sunet.se/sunet-cdn

2
go.mod
View file

@ -1,3 +1,3 @@
module testgo module action-runner-testgo
go 1.22.4 go 1.22.4