diff options
author | Christian Segundo | 2024-04-07 03:50:01 +0200 |
---|---|---|
committer | Christian Segundo | 2024-04-07 04:31:01 +0200 |
commit | c555d9a7ba5da3b58742811c69e762f024974319 (patch) | |
tree | 057026c444f80a3860c0f045d65643c79a4057a0 /.scripts.d/40-publish.sh | |
parent | 71ae2a72ca58c46004820486eb10a06f44a5cec0 (diff) | |
download | languagetool-c555d9a7ba5da3b58742811c69e762f024974319.tar.gz |
bump to 6.4
debug
debug no tag
x
x
Diffstat (limited to '.scripts.d/40-publish.sh')
-rw-r--r-- | .scripts.d/40-publish.sh | 25 |
1 files changed, 18 insertions, 7 deletions
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 |