Skip to content

Commit

Permalink
Revert CI changes to enable tagged versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Maksimov committed Feb 20, 2020
1 parent b9b1684 commit fe4aa2b
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .circleci/release.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
#!/bin/bash -e
VERSION=experimental
VHASH=$(./docker/hash.sh)

if [[ $CIRCLE_TAG == v* ]] ;
then
VERSION=$CIRCLE_TAG
else
VERSION=experimental
fi

$(aws ecr get-login --no-include-email --region us-west-2)
docker login -u $DOCKER_HUB_LOGIN -p $DOCKER_HUB_PASSWORD

docker pull $NODE_DOCKER_IMAGE:$VHASH
docker pull $NODE_DOCKER_IMAGE:$(./docker/hash.sh)

docker tag $NODE_DOCKER_IMAGE:$VHASH orbsnetwork/node:$VERSION
docker tag $NODE_DOCKER_IMAGE:$(./docker/hash.sh) orbsnetwork/node:$VERSION
docker push orbsnetwork/node:$VERSION

docker tag $NODE_DOCKER_IMAGE:$VHASH orbsnetwork/node:$VHASH
docker push orbsnetwork/node:$VHASH
docker tag $NODE_DOCKER_IMAGE:$(./docker/hash.sh) orbsnetwork/node:$(./docker/hash.sh)
docker push orbsnetwork/node:$(./docker/hash.sh)

docker pull $GAMMA_DOCKER_IMAGE:$VHASH
docker tag $GAMMA_DOCKER_IMAGE:$VHASH orbsnetwork/gamma:$VERSION
docker pull $GAMMA_DOCKER_IMAGE:$(./docker/hash.sh)
docker tag $GAMMA_DOCKER_IMAGE:$(./docker/hash.sh) orbsnetwork/gamma:$VERSION
docker push orbsnetwork/gamma:$VERSION

docker pull $SIGNER_DOCKER_IMAGE:$VHASH
docker tag $SIGNER_DOCKER_IMAGE:$VHASH orbsnetwork/signer:$VERSION
docker pull $SIGNER_DOCKER_IMAGE:$(./docker/hash.sh)
docker tag $SIGNER_DOCKER_IMAGE:$(./docker/hash.sh) orbsnetwork/signer:$VERSION
docker push orbsnetwork/signer:$VERSION

0 comments on commit fe4aa2b

Please sign in to comment.