Compare commits

...

12 commits

Author SHA1 Message Date
afffca09ad 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
2024-06-28 07:05:23 +00:00
c1f03a8ef0
Test commit
Some checks failed
/ test (pull_request) Failing after 14s
2024-06-28 08:50:11 +02:00
51ef79eb4b
Try separate steps
Some checks failed
/ test (pull_request) Failing after 11s
2024-06-27 15:31:38 +02:00
b4c596fc1f
See if it is correctly substituted when not doing echo
Some checks failed
/ test (pull_request) Failing after 12s
2024-06-27 15:29:27 +02:00
03e0cd6f33
Try to push container to sunet-cdn org
Some checks failed
/ test (pull_request) Failing after 12s
2024-06-27 15:21:02 +02:00
7515865cc4
Revert "Try building without version again"
All checks were successful
/ test (pull_request) Successful in 31s
This reverts commit 5d94746501.
2024-06-27 10:01:07 +02:00
28a8f6b6ad
Build again
Some checks failed
/ test (pull_request) Failing after 10s
2024-06-27 09:36:10 +02:00
e1ec765975
Test another build
Some checks failed
/ test (pull_request) Failing after 11s
2024-06-27 09:09:07 +02:00
5d94746501
Try building without version again
Some checks failed
/ test (pull_request) Failing after 11s
2024-06-27 08:15:11 +02:00
c22163fdef
Try setting specific version
All checks were successful
/ test (pull_request) Successful in 33s
2024-06-27 07:52:00 +02:00
34f378dafd
Try using another image for building
Some checks failed
/ test (pull_request) Failing after 44s
A missing "jq" is stopping setup-ko
2024-06-25 15:19:56 +02:00
7a01292d1c
Try building go with ko
Some checks failed
/ test (pull_request) Failing after 59s
2024-06-25 15:13:41 +02:00
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")
}