Skip to content

Commit

Permalink
feat: keep cloudsmith publication
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbousquet committed Sep 16, 2024
1 parent 240323e commit 16e7182
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 16e7182

Please sign in to comment.