Skip to content

Commit

Permalink
Update Go to 1.21
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Jan 17, 2024
1 parent c749fed commit 67fa250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:
tags-ignore:
- "v*"
pull_request:

env:
CGO_ENABLED: 0
GO_VERSION: '1.21'

jobs:
verify:
Expand All @@ -19,10 +21,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- name: goimports
run: go install golang.org/x/tools/cmd/goimports@latest && goimports -d . | (! grep .)
go-version: "${{ env.GO_VERSION }}"

- name: make vet
run: make vet
Expand All @@ -39,7 +38,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "${{ env.GO_VERSION }}"

- name: Unit test
run: make test
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.20 AS builder
FROM --platform=$BUILDPLATFORM golang:1.21 AS builder

WORKDIR /workspace

Expand Down

0 comments on commit 67fa250

Please sign in to comment.