mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
circle: add tag v-prefix
This commit is contained in:
parent
a6c81f32bc
commit
4d0c697548
|
@ -45,7 +45,7 @@ deployment:
|
|||
- docker push $DOCKER_IMAGE_NAME
|
||||
- docker push $QUAY_IMAGE_NAME
|
||||
hub_tag:
|
||||
tag: /^[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
||||
tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
||||
owner: prometheus
|
||||
commands:
|
||||
- promu crossbuild tarballs
|
||||
|
@ -54,7 +54,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
|
||||
|
|
Loading…
Reference in a new issue