Files
ko-build/.github/workflows/go-1.18.yaml
T
Carlos Tadeu Panato Junior a5f223ec4e check and use the latest go available for the defined version (#690)
* check and use the latest go available for the defined version

Signed-off-by: cpanato <ctadeu@gmail.com>

* update cosign action and version

Signed-off-by: cpanato <ctadeu@gmail.com>

* update based on feedback

Signed-off-by: cpanato <ctadeu@gmail.com>
2022-04-21 09:54:20 -04:00

36 lines
887 B
YAML

name: Go 1.18 compat test
on:
pull_request:
branches: ['main']
jobs:
go118:
strategy:
fail-fast: false
matrix:
ko-go-version: ['1.17', '1.18']
user-go-version: ['1.17', '1.18']
name: Go 1.18 compat (ko=${{ matrix.ko-go-version }} / user=${{ matrix.user-go-version }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Build ko using ko-go-version
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.ko-go-version }}
check-latest: true
- run: go install ./
# Run ko using user-go-version
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.user-go-version }}
check-latest: true
- run: |
go install github.com/google/go-containerregistry/cmd/registry@latest
registry &
KO_DOCKER_REPO=localhost:1338 ko build ./test/