From 20c30ec752fd65becb340c227d4eb0b43b3a23be Mon Sep 17 00:00:00 2001 From: jingyuanliang Date: Thu, 16 Nov 2023 21:59:35 -0500 Subject: [PATCH] Bump to golang:1.21-alpine in release.sh Also make this overridable in env vars. Signed-off-by: Jingyuan Liang --- scripts/release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 2b92d28a8..b8e5659f7 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -3,6 +3,7 @@ set -xe SRC_DIR="${SRC_DIR:-$PWD}" DOCKER="${DOCKER:-docker}" +GOLANG="${GOLANG:-golang:1.21-alpine}" TAG=$(git describe --tags --dirty) RELEASE_DIR=release-${TAG} @@ -16,7 +17,7 @@ rm -Rf ${SRC_DIR}/${RELEASE_DIR} mkdir -p ${SRC_DIR}/${RELEASE_DIR} mkdir -p ${OUTPUT_DIR} -$DOCKER run -ti -v ${SRC_DIR}:/go/src/github.com/containernetworking/plugins:z --rm golang:1.20-alpine \ +$DOCKER run -ti -v ${SRC_DIR}:/go/src/github.com/containernetworking/plugins:z --rm "${GOLANG}" \ /bin/sh -xe -c "\ apk --no-cache add bash tar; cd /go/src/github.com/containernetworking/plugins; umask 0022;