Merge pull request #424 from prometheus/sdurrheimer/fix-circleci-regex

circleci : fix missing regex update for v-prefiexed tags
This commit is contained in:
Fabian Reinartz 2016-07-09 19:19:34 +02:00 committed by GitHub
commit 42c193b136
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ deployment:
- docker login -e $DOCKER_EMAIL -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- 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 "$QUAY_IMAGE_NAME:$CIRCLE_TAG" "$QUAY_IMAGE_NAME:latest"
fi