mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
* 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>
36 lines
887 B
YAML
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/
|