circle: tag pre-release docker images

This commit is contained in:
Fabian Reinartz 2016-07-14 11:36:39 +09:00
parent 50aac965ba
commit 8c2320752e

View File

@ -54,8 +54,10 @@ deployment:
- docker login -e $QUAY_EMAIL -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io
- |
if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then
docker tag "$DOCKER_IMAGE_NAME:$CIRCLE_TAG" "$DOCKER_IMAGE_NAME:latest"
docker tag "$QUAY_IMAGE_NAME:$CIRCLE_TAG" "$QUAY_IMAGE_NAME:latest"
docker tag "$DOCKER_IMAGE_NAME:latest"
docker tag "$QUAY_IMAGE_NAME:latest"
fi
- docker tag "$DOCKER_IMAGE_NAME:$CIRCLE_TAG"
- docker tag "$QUAY_IMAGE_NAME:$CIRCLE_TAG"
- docker push $DOCKER_IMAGE_NAME
- docker push $QUAY_IMAGE_NAME