From 556e22c751501f22ddde2b2e732475f0d64ad8b8 Mon Sep 17 00:00:00 2001 From: Austin Vazquez Date: Fri, 19 Apr 2024 21:18:51 +0000 Subject: [PATCH] Update min Go version to Go 1.21 Signed-off-by: Austin Vazquez --- .github/workflows/build.yaml | 2 +- Dockerfile | 2 +- ecr-login/go.mod | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 02b4248f..31173c07 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,7 +36,7 @@ jobs: build: strategy: matrix: - go: ['1.19', '1.20', '1.21'] + go: ['1.21', '1.22'] # Intentionally use specific versions instead of "latest" to # make this build reproducible. diff --git a/Dockerfile b/Dockerfile index 342f3dc2..bded0958 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. -FROM golang:1.19 +FROM public.ecr.aws/docker/library/golang:1.22 WORKDIR /go/src/github.com/awslabs/amazon-ecr-credential-helper diff --git a/ecr-login/go.mod b/ecr-login/go.mod index c899d942..d90f7abd 100644 --- a/ecr-login/go.mod +++ b/ecr-login/go.mod @@ -1,6 +1,6 @@ module github.com/awslabs/amazon-ecr-credential-helper/ecr-login -go 1.19 +go 1.21 require ( github.com/aws/aws-sdk-go-v2 v1.26.1