From 073967fd412329bc872537f353027af954340892 Mon Sep 17 00:00:00 2001 From: Matt Reiferson Date: Sun, 15 Aug 2021 11:29:34 -0700 Subject: [PATCH] dist: docker build with temp namespace --- dist.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist.sh b/dist.sh index ecdd3f826..5864d8e27 100755 --- a/dist.sh +++ b/dist.sh @@ -43,11 +43,11 @@ for target in "linux/amd64" "linux/arm64" "darwin/amd64" "darwin/arm64" "freebsd sudo rm -r $BUILD done -docker buildx create --name nsq -docker buildx use nsq +rnd=$(LC_ALL=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c10) +docker buildx create --use --name nsq-$rnd docker buildx build --tag nsqio/nsq:v$version . --platform linux/amd64,linux/arm64 --push if [[ ! $version == *"-"* ]]; then echo "Tagging nsqio/nsq:v$version as the latest release." docker buildx build --tag nsqio/nsq:latest . --platform linux/amd64,linux/arm64 --push fi -docker buildx rm nsq +docker buildx rm nsq-$rnd