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:
parent
abee8ccc0d
commit
d708217503
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@ -4,7 +4,7 @@ name: test
|
|||||||
on: ["push", "pull_request"]
|
on: ["push", "pull_request"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.20"
|
GO_VERSION: "1.21"
|
||||||
LINUX_ARCHES: "amd64 386 arm arm64 s390x mips64le ppc64le riscv64"
|
LINUX_ARCHES: "amd64 386 arm arm64 s390x mips64le ppc64le riscv64"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -3,6 +3,7 @@ set -xe
|
|||||||
|
|
||||||
SRC_DIR="${SRC_DIR:-$PWD}"
|
SRC_DIR="${SRC_DIR:-$PWD}"
|
||||||
DOCKER="${DOCKER:-docker}"
|
DOCKER="${DOCKER:-docker}"
|
||||||
|
GOLANG="${GOLANG:-golang:1.21-alpine}"
|
||||||
|
|
||||||
TAG=$(git describe --tags --dirty)
|
TAG=$(git describe --tags --dirty)
|
||||||
RELEASE_DIR=release-${TAG}
|
RELEASE_DIR=release-${TAG}
|
||||||
@ -16,7 +17,7 @@ rm -Rf ${SRC_DIR}/${RELEASE_DIR}
|
|||||||
mkdir -p ${SRC_DIR}/${RELEASE_DIR}
|
mkdir -p ${SRC_DIR}/${RELEASE_DIR}
|
||||||
mkdir -p ${OUTPUT_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 "\
|
/bin/sh -xe -c "\
|
||||||
apk --no-cache add bash tar;
|
apk --no-cache add bash tar;
|
||||||
cd /go/src/github.com/containernetworking/plugins; umask 0022;
|
cd /go/src/github.com/containernetworking/plugins; umask 0022;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user