🌱 Use Go version as specified by our go.mod file. (#2912)

Signed-off-by: Spencer Schrock <sschrock@google.com>
This commit is contained in:
Spencer Schrock 2023-04-26 10:10:06 -07:00 committed by GitHub
parent dd352a1d37
commit f3b777086f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,12 +20,9 @@ on:
push:
branches:
- main
env:
GO_VERSION: 1.17
jobs:
unit-test:
name: publishimage
publishimage:
runs-on: ubuntu-latest
permissions:
contents: read
@ -46,10 +43,10 @@ jobs:
- name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod # use version from go.mod so it stays in sync
check-latest: true
- name: install ko
uses: imjasonh/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa
uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6
- name: publishimage
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
with: