2024-06-25 13:12:02 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2024-06-25 07:27:52 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
2024-06-25 13:19:56 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2024-06-25 07:27:52 +00:00
|
|
|
steps:
|
2024-06-25 13:12:02 +00:00
|
|
|
- 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
|
2024-06-27 08:01:07 +00:00
|
|
|
with:
|
|
|
|
version: v0.15.4
|
2024-06-27 13:31:38 +00:00
|
|
|
- run: ko login https://platform.sunet.se --username ci-sunet-cdn --password ${{ secrets.CI_SUNET_CDN }}
|
|
|
|
- run: ko build
|
2024-06-25 13:12:02 +00:00
|
|
|
env:
|
2024-06-27 13:21:02 +00:00
|
|
|
KO_DOCKER_REPO: platform.sunet.se/sunet-cdn
|