From 16e7182c8907ffec8a1ff5a62521c4a3ca934467 Mon Sep 17 00:00:00 2001 From: Sebastien Bousquet Date: Mon, 16 Sep 2024 10:12:29 +0200 Subject: [PATCH] feat: keep cloudsmith publication --- release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/release.sh b/release.sh index 0c45802..84a5095 100755 --- a/release.sh +++ b/release.sh @@ -2,6 +2,7 @@ set -e if [ -z "$GITHUB_CHANGELOG_TOKEN" ] ; then echo "Please set GITHUB_CHANGELOG_TOKEN environment variable"; exit -1; fi +if [ -z "$CLOUDSMITH_TOKEN" ] ; then echo "Please set CLOUDSMITH_TOKEN environment variable"; exit -1; fi function clean { ARG=$? @@ -160,10 +161,21 @@ echo "==> Docker" docker build --no-cache --build-arg version=${VERSION} --tag gisaia/arlas-wui-iam:${VERSION} . docker push gisaia/arlas-wui-iam:${VERSION} + +## tag and push on cloudsmith +## TO REMOVE when arlas-cloud will be updated +docker tag gisaia/arlas-wui-iam:${VERSION} docker.cloudsmith.io/gisaia/private/arlas-wui-iam:${VERSION} +docker push docker.cloudsmith.io/gisaia/private/arlas-wui-iam:${VERSION} + if [ "${STAGE}" == "stable" ] && [ "${IS_LATEST_VERSION}" == "YES" ]; then docker tag gisaia/arlas-wui-iam:${VERSION} gisaia/arlas-wui-iam:latest docker push gisaia/arlas-wui-iam:latest + + ## tag and push on cloudsmith + ## TO REMOVE when arlas-cloud will be updated + docker gisaia/arlas-wui-iam:latest docker.cloudsmith.io/gisaia/private/arlas-wui-iam:latest + docker push docker.cloudsmith.io/gisaia/private/arlas-wui-iam:latest fi git tag v${VERSION}