diff options
author | Christian Segundo | 2024-04-07 23:09:05 +0200 |
---|---|---|
committer | Christian Segundo | 2024-04-07 23:09:05 +0200 |
commit | b89d3dbbcea5aca094e4ba937e54ff11b3218dcf (patch) | |
tree | f338de168db2a1679889802f714c1a47a18741d7 | |
parent | 131f2246d766e1b893874f425753954b3c9aae19 (diff) | |
download | languagetool-b89d3dbbcea5aca094e4ba937e54ff11b3218dcf.tar.gz |
use random builder
-rw-r--r-- | .scripts.d/40-publish.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.scripts.d/40-publish.sh b/.scripts.d/40-publish.sh index 4425723..efb1b21 100644 --- a/.scripts.d/40-publish.sh +++ b/.scripts.d/40-publish.sh @@ -13,8 +13,10 @@ command -v docker >/dev/null 2>&1 || { docker login --username "chn2guevara" \ --password-stdin <<<"$DOCKERHUB_TOKEN" +BUILDER_SUFFIX=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 5 ; echo '') docker run --privileged --rm tonistiigi/binfmt --install arm64 docker buildx create --use --name multi-arch-builder +trap "docker buildx rm 'multi-arch-builder-""${BUILDER_SUFFIX}""'" EXIT DOCKER_TAG="latest" if [ "$GIT_BRANCH" != "master" ]; then @@ -24,6 +26,7 @@ fi if [ "$(git tag --contains)" = "" ]; then docker buildx build \ --platform linux/amd64,linux/arm64 \ + --builder "multi-arch-builder-${BUILDER_SUFFIX}" \ --no-cache \ --pull \ --push \ @@ -32,6 +35,7 @@ if [ "$(git tag --contains)" = "" ]; then else docker buildx build \ --platform linux/amd64,linux/arm64 \ + --builder "multi-arch-builder-${BUILDER_SUFFIX}" \ --no-cache \ --pull \ --push \ |