From b539c7c26467d1023b689541f71032d79a7fc30f Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 23 Jun 2023 09:46:42 +0200 Subject: [PATCH] build: use Go 1.20 while building in container This also moves to use the quay.io mirror of the Golang container-image from docker.io. Docker Hub has pull restrictions, that can prevent pulling the image if it is done too often. Quay.io does not enforce restrictions like that. Signed-off-by: Niels de Vos --- Dockerfile | 2 +- build/Containerfile.sidecar | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4cfceba30..685544d84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.19 as builder +FROM quay.io/projectquay/golang:1.20 as builder # Copy the contents of the repository ADD . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons diff --git a/build/Containerfile.sidecar b/build/Containerfile.sidecar index a9b8c584e..41390304d 100644 --- a/build/Containerfile.sidecar +++ b/build/Containerfile.sidecar @@ -1,5 +1,5 @@ # Build the sidecar binary -FROM golang:1.19 as builder +FROM quay.io/projectquay/golang:1.20 as builder # Copy the contents of the repository ADD . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons