From 53d21b82d3ec9fe268d5af7fa49fbd16f2b6ee54 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 7 Mar 2023 11:27:09 +0000 Subject: [PATCH] fix publish docker script --- scripts/travis/deploy/publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/travis/deploy/publish.sh b/scripts/travis/deploy/publish.sh index 85d7b7669..49d03d614 100755 --- a/scripts/travis/deploy/publish.sh +++ b/scripts/travis/deploy/publish.sh @@ -16,11 +16,11 @@ DOCKER_REPOSITORY="$DOMAIN/$REPO_SLUG" # Publish Image to quay.io or dockerhub or another domain - only publish the version on master - elsewhere version and branch if [[ "$BRANCH_NAME" == "master" ]]; then - if [[ "$DRY_RUN" == "false" ]]; then + if [[ "$DRY_RUN" != "true" ]]; then npx @alfresco/adf-cli docker-publish --loginCheck --loginUsername "$USERNAME" --loginPassword "$PASSWORD" --loginRepo "$DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --buildArgs "$DOCKER_PROJECT_ARGS" --dockerTags "$TAG_VERSION" --pathProject "$(pwd)" fi; else - if [[ "$DRY_RUN" == "false" ]]; then + if [[ "$DRY_RUN" != "true" ]]; then npx @alfresco/adf-cli docker-publish --loginCheck --loginUsername "$USERNAME" --loginPassword "$PASSWORD" --loginRepo "$DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --buildArgs "$DOCKER_PROJECT_ARGS" --dockerTags "$TAG_VERSION,$BRANCH_NAME" --pathProject "$(pwd)" fi; fi;