From 08ce8f6fcdd663128eea98832830ed3c2ae59e9f Mon Sep 17 00:00:00 2001 From: clarklee92 Date: Tue, 4 Jun 2024 12:03:59 +0800 Subject: [PATCH] Upgrade Golang to version 1.21 Signed-off-by: clarklee92 --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/e2e-1.26.yaml | 2 +- Dockerfile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f21fbadb..e58e99a0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,8 +10,8 @@ on: env: # Common versions - GO_VERSION: '1.19' - GOLANGCI_VERSION: 'v1.51' + GO_VERSION: '1.21' + GOLANGCI_VERSION: 'v1.58' DOCKER_BUILDX_VERSION: 'v0.4.2' # Common users. We can't run a step 'if secrets.AWS_USR != ""' but we can run diff --git a/.github/workflows/e2e-1.26.yaml b/.github/workflows/e2e-1.26.yaml index 0ec8eb8a..bb175d20 100644 --- a/.github/workflows/e2e-1.26.yaml +++ b/.github/workflows/e2e-1.26.yaml @@ -10,7 +10,7 @@ on: env: # Common versions - GO_VERSION: '1.19' + GO_VERSION: '1.21' KIND_ACTION_VERSION: 'v1.3.0' KIND_VERSION: 'v0.14.0' KIND_IMAGE: 'kindest/node:v1.26.4' diff --git a/Dockerfile b/Dockerfile index 3f6a0bec..330ab262 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.19 as builder +FROM golang:1.21 as builder WORKDIR /workspace # Copy the Go Modules manifests