From c555d9a7ba5da3b58742811c69e762f024974319 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 7 Apr 2024 03:50:01 +0200 Subject: bump to 6.4 debug debug no tag x x --- .scripts.d/40-publish.sh | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to '.scripts.d') diff --git a/.scripts.d/40-publish.sh b/.scripts.d/40-publish.sh index 3e425c3..4425723 100644 --- a/.scripts.d/40-publish.sh +++ b/.scripts.d/40-publish.sh @@ -21,10 +21,21 @@ if [ "$GIT_BRANCH" != "master" ]; then DOCKER_TAG="${GIT_BRANCH//\//-}" fi -docker buildx build \ - --platform linux/amd64,linux/arm64 \ - --no-cache \ - --pull \ - --push \ - --tag "chn2guevara/languagetool:${DOCKER_TAG}" \ - . +if [ "$(git tag --contains)" = "" ]; then + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --no-cache \ + --pull \ + --push \ + --tag "chn2guevara/languagetool:${DOCKER_TAG}" \ + . +else + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --no-cache \ + --pull \ + --push \ + --tag "chn2guevara/languagetool:${DOCKER_TAG}" \ + --tag "chn2guevara/languagetool:$(git tag --contains | head -1)" \ + . +fi -- cgit v1.2.3