From 340e771a847daff9ce77305a33ff30ac48b81832 Mon Sep 17 00:00:00 2001 From: Ken Sipe Date: Wed, 16 Mar 2022 16:05:02 -0500 Subject: [PATCH 1/2] Version Bump for Go Build Docker Image Signed-off-by: Ken Sipe --- build/Dockerfile | 2 +- build/test-images.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 11dc360b3..4ee90b9cb 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -ARG GOLANG_VERSION=1.16 +ARG GOLANG_VERSION=1.18 FROM golang:${GOLANG_VERSION} ARG KUBEBUILDER_VERSION=2.3.1 diff --git a/build/test-images.sh b/build/test-images.sh index 59471b6aa..2d7b8853e 100755 --- a/build/test-images.sh +++ b/build/test-images.sh @@ -1,7 +1,7 @@ #!/bin/sh -docker build --build-arg GOLANG_VERSION=1.15 -t kudobuilder/golang:1.15 . -docker push kudobuilder/golang:1.15 +docker build --build-arg GOLANG_VERSION=1.18 -t kudobuilder/golang:1.18 . +docker push kudobuilder/golang:1.18 docker build --build-arg GOLANG_VERSION=latest -t kudobuilder/golang:latest . docker push kudobuilder/golang:latest From 6828c4e899f52ee6738ba2072ecdd1cb0cbdfa91 Mon Sep 17 00:00:00 2001 From: Ken Sipe Date: Wed, 16 Mar 2022 18:28:10 -0500 Subject: [PATCH 2/2] Move to docker buildx for multi platform Signed-off-by: Ken Sipe --- build/test-images.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build/test-images.sh b/build/test-images.sh index 2d7b8853e..025e77418 100755 --- a/build/test-images.sh +++ b/build/test-images.sh @@ -1,7 +1,5 @@ #!/bin/sh -docker build --build-arg GOLANG_VERSION=1.18 -t kudobuilder/golang:1.18 . -docker push kudobuilder/golang:1.18 +docker buildx build --build-arg GOLANG_VERSION=1.18 --platform linux/amd64,linux/arm64,linux/arm/v7 -t kudobuilder/golang:1.18 . --push -docker build --build-arg GOLANG_VERSION=latest -t kudobuilder/golang:latest . -docker push kudobuilder/golang:latest +docker buildx build --build-arg GOLANG_VERSION=latest --platform linux/amd64,linux/arm64,linux/arm/v7 -t kudobuilder/golang:latest . --push