Skip to content

Commit

Permalink
Update docker build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Apr 27, 2017
1 parent f4f65ab commit 22d3384
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions hack/docker/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ docker_push() {
echo "Nothing to do in prod env. Are you trying to 'release' binaries to prod?"
exit 0
fi

if [[ "$(docker images -q appscode/$IMG:$TAG 2> /dev/null)" != "" ]]; then
docker_up $IMG:$TAG
if [ "$TAG_STRATEGY" = "git_tag" ]; then
echo "Are you trying to 'release' binaries to prod?"
exit 1
fi
hub_canary
}

docker_release() {
Expand All @@ -81,10 +82,7 @@ docker_release() {
echo "'apply_tag' to release binaries and/or docker images."
exit 1
fi

if [[ "$(docker images -q appscode/$IMG:$TAG 2> /dev/null)" != "" ]]; then
docker push appscode/$IMG:$TAG
fi
hub_up
}

source_repo $@

0 comments on commit 22d3384

Please sign in to comment.