Skip to content

Commit

Permalink
Added informational output in docker-push.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lmakarov committed Jul 16, 2018
1 parent 9db3694 commit b18f4c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ tag_and_push ()
local target=$2

# Base image
echo "Pushing ${target} image ..."
docker tag ${source} ${target}
docker push ${target}

# Cloud9 flavor
echo "Pushing ${target}-ide image ..."
docker tag ${source}-ide ${target}-ide
docker push ${target}-ide
}
Expand Down Expand Up @@ -76,6 +78,7 @@ tag_and_push ${REPO}:build-${VERSION} ${REPO}:${IMAGE_TAG}
# Special case for the "latest" tag
# Push (base image only) on stable and release builds
if is_latest && (is_stable || is_release); then
echo "Pushing ${REPO}:${IMAGE_TAG_LATEST} image ..."
docker tag ${REPO}:build-${VERSION} ${REPO}:${IMAGE_TAG_LATEST}
docker push ${REPO}:${IMAGE_TAG_LATEST}
fi

0 comments on commit b18f4c4

Please sign in to comment.