Skip to content

Commit

Permalink
ci: use Go 1.22 for GitHub Workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen M <[email protected]>
  • Loading branch information
iPraveenParihar authored and mergify[bot] committed Apr 25, 2024
1 parent 38e145d commit 0165985
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Generate the bundle contents
run: make bundle
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kind-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Build container container image
uses: docker/build-push-action@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Generate the bundle contents
run: make bundle TAG=${{ github.ref_name }}
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Generate manifests for installation by kubectl
run: make manifests TAG=${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Generate the bundle contents
run: make bundle
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Install Protoc
# action @v1.3.0 can install protoc 3.19, @v2 installs protoc v21.0+
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Verify Go modules
run: go mod verify
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Vendor all dependencies
run: go mod vendor
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 golang:1.21 as builder
FROM golang:1.22 as builder

# Copy the contents of the repository
COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
Expand Down
2 changes: 1 addition & 1 deletion build/Containerfile.sidecar
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the sidecar binary
FROM golang:1.21 as builder
FROM golang:1.22 as builder

# Copy the contents of the repository
COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/csi-addons/kubernetes-csi-addons

go 1.21
go 1.22

toolchain go1.21.5
toolchain go1.22.2

require (
github.com/container-storage-interface/spec v1.9.0
Expand Down

0 comments on commit 0165985

Please sign in to comment.