From 3a269e637f07de1111aab0f2c1402efcb44de681 Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Tue, 23 May 2017 14:14:50 -0400 Subject: [PATCH] fix(docker): only push from one test node (#5065) r=jrgm Fixes #4950 --- circle.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index 73b8bfd3e..584373261 100644 --- a/circle.yml +++ b/circle.yml @@ -59,7 +59,8 @@ deployment: echo ${DOCKERHUB_REPO}:${CIRCLE_BRANCH} docker tag fxa-content-server:build ${DOCKERHUB_REPO}:${CIRCLE_BRANCH} - docker push ${DOCKERHUB_REPO}:${CIRCLE_BRANCH} + + case $CIRCLE_NODE_INDEX in 0) docker push ${DOCKERHUB_REPO}:${CIRCLE_BRANCH} ;; 1) echo "Image pushed in another node" ;; esac hub_releases: # push all tags @@ -82,4 +83,4 @@ deployment: - "echo ${DOCKERHUB_REPO}:${CIRCLE_TAG}" - "docker tag fxa-content-server:build ${DOCKERHUB_REPO}:${CIRCLE_TAG}" - "docker images" - - "docker push ${DOCKERHUB_REPO}:${CIRCLE_TAG}" + - case $CIRCLE_NODE_INDEX in 0) docker push ${DOCKERHUB_REPO}:${CIRCLE_BRANCH} ;; 1) echo "Image pushed in another node" ;; esac