Merge pull request 'Try building go with ko' (#2) from patlu/action-runner-demo:build_go into main
Some checks failed
/ test (push) Failing after 12s

Reviewed-on: #2
This commit is contained in:
patlu 2024-06-28 07:05:23 +00:00
commit afffca09ad
3 changed files with 29 additions and 3 deletions

View file

@ -1,6 +1,20 @@
on: [push]
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: docker
runs-on: ubuntu-22.04
steps:
- run: echo All Good
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://github.com/actions/setup-go@v5
with:
go-version: '1.22.4'
- uses: https://github.com/ko-build/setup-ko@v0.7
with:
version: v0.15.4
- run: ko login https://platform.sunet.se --username ci-sunet-cdn --password ${{ secrets.CI_SUNET_CDN }}
- run: ko build
env:
KO_DOCKER_REPO: platform.sunet.se/sunet-cdn

3
go.mod Normal file
View file

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

9
main.go Normal file
View file

@ -0,0 +1,9 @@
package main
import (
"fmt"
)
func main() {
fmt.Println("hello")
}