Skip to content

Commit

Permalink
Merge pull request #4 from reactiveops/pc/remove-latest-push
Browse files Browse the repository at this point in the history
docker-push: Remove pushing latest tag
  • Loading branch information
sairez authored Oct 25, 2016
2 parents 6568120 + 91b343b commit 46b7ca9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions bin/docker-push
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@

echo "Pushing $DOCKERTAG:latest as $CI_SHA1, $CI_BRANCH, $CI_BUILD_NUM to ${EXTERNAL_REGISTRY_BASE_DOMAIN}/${REPOSITORY_NAME}"

docker tag $DOCKERTAG:latest ${EXTERNAL_REGISTRY_BASE_DOMAIN}/${REPOSITORY_NAME}:latest
if [ $? -ne 0 ]
then
echo "Unable to tag image, aborting"
exit 1
fi
docker push ${EXTERNAL_REGISTRY_BASE_DOMAIN}/${REPOSITORY_NAME}:latest
if [ $? -ne 0 ]
then
echo "Unable to push docker image, aborting."
exit 1
fi

docker tag $DOCKERTAG:latest ${EXTERNAL_REGISTRY_BASE_DOMAIN}/${REPOSITORY_NAME}:$CI_SHA1
if [ $? -ne 0 ]
then
Expand Down

0 comments on commit 46b7ca9

Please sign in to comment.