mirror of
https://github.com/rancher/plugins.git
synced 2025-09-01 05:47:44 +00:00
Bump to golang:1.21-alpine in release.sh
Also make this overridable in env vars. Signed-off-by: Jingyuan Liang <jingyuanliang@google.com>
This commit is contained in:
committed by
Jingyuan Liang
parent
abee8ccc0d
commit
d708217503
@@ -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;
|
||||
|
Reference in New Issue
Block a user