Fix CircleCI job to publish container images (#478)
authorSimon Pasquier <spasquie@redhat.com>
Thu, 23 May 2019 08:14:14 +0000 (10:14 +0200)
committerGitHub <noreply@github.com>
Thu, 23 May 2019 08:14:14 +0000 (10:14 +0200)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
.circleci/config.yml

index 723d64a6dba990a414ff6fdfc7965e179ea9f66b..374b70e3f0c161979745bee9e9f59a13cc8dfadd 100644 (file)
@@ -88,9 +88,11 @@ jobs:
         if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then
           make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG"
           make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" DOCKER_REPO=quay.io/prometheus
+          make docker-publish DOCKER_IMAGE_TAG="latest"
+          make docker-publish DOCKER_IMAGE_TAG="latest" DOCKER_REPO=quay.io/prometheus
         fi
-    - run: make docker-publish
-    - run: make docker-publish DOCKER_REPO=quay.io/prometheus
+    - run: make docker-publish DOCKER_IMAGE_TAG="$CIRCLE_TAG"
+    - run: make docker-publish DOCKER_REPO=quay.io/prometheus DOCKER_IMAGE_TAG="$CIRCLE_TAG"
 
 workflows:
   version: 2