Skip to content

Commit

Permalink
Add docker image "2" tag for releases (specklesystems#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristi8 authored Apr 20, 2021
1 parent cab0cc6 commit 26edc3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .circleci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ docker tag $DOCKER_IMAGE_TAG:latest $DOCKER_IMAGE_TAG:$IMAGE_VERSION_TAG
echo "$DOCKER_REG_PASS" | docker login -u "$DOCKER_REG_USER" --password-stdin $DOCKER_REG_URL
docker push $DOCKER_IMAGE_TAG:latest
docker push $DOCKER_IMAGE_TAG:$IMAGE_VERSION_TAG

if [[ "$CIRCLE_TAG" =~ ^v.* ]]; then
docker tag $DOCKER_IMAGE_TAG:latest $DOCKER_IMAGE_TAG:2
docker push $DOCKER_IMAGE_TAG:2
fi

0 comments on commit 26edc3a

Please sign in to comment.