circle: add tag v-prefix

This commit is contained in:
Steve Durrheimer 2016-09-09 08:40:28 +02:00
parent 24eab4e35a
commit c1f2d12554
No known key found for this signature in database
GPG key ID: 8F443EBA70F74839

View file

@ -44,7 +44,7 @@ deployment:
- docker push $DOCKER_IMAGE_NAME - docker push $DOCKER_IMAGE_NAME
- docker push $QUAY_IMAGE_NAME - docker push $QUAY_IMAGE_NAME
hub_tag: hub_tag:
tag: /^[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
owner: prometheus owner: prometheus
commands: commands:
- promu crossbuild tarballs - promu crossbuild tarballs
@ -53,7 +53,7 @@ deployment:
- docker login -e $DOCKER_EMAIL -u $DOCKER_LOGIN -p $DOCKER_PASSWORD - docker login -e $DOCKER_EMAIL -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- docker login -e $QUAY_EMAIL -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io - docker login -e $QUAY_EMAIL -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io
- | - |
if [[ "$CIRCLE_TAG" =~ ^[0-9]+(\.[0-9]+){2}$ ]]; then if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then
docker tag "$DOCKER_IMAGE_NAME:$CIRCLE_TAG" "$DOCKER_IMAGE_NAME:latest" docker tag "$DOCKER_IMAGE_NAME:$CIRCLE_TAG" "$DOCKER_IMAGE_NAME:latest"
docker tag "$QUAY_IMAGE_NAME:$CIRCLE_TAG" "$QUAY_IMAGE_NAME:latest" docker tag "$QUAY_IMAGE_NAME:$CIRCLE_TAG" "$QUAY_IMAGE_NAME:latest"
fi fi