Skip to content

Commit

Permalink
Merge pull request #14886 from stevekuznetsov/skuznets/better-push-lo…
Browse files Browse the repository at this point in the history
…gging

Add better logging to hack/push-release.sh
  • Loading branch information
smarterclayton authored Jun 27, 2017
2 parents 7d28dcb + 4c923e8 commit cf83ff4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/push-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ if [[ "${tag}" == ":latest" ]]; then
if [[ "${OS_PUSH_BASE_IMAGES-}" != "" ]]; then
for image in "${base_images[@]}"; do
if [[ "${OS_PUSH_BASE_REGISTRY-}" != "" ]]; then
os::log::info "Pushing ${image}:${source_tag} to ${OS_PUSH_BASE_REGISTRY}${image}${tag}..."
docker tag "${image}:${source_tag}" "${OS_PUSH_BASE_REGISTRY}${image}${tag}"
fi
os::log::info "Pushing ${OS_PUSH_BASE_REGISTRY-}${image}${tag}..."
docker push ${PUSH_OPTS} "${OS_PUSH_BASE_REGISTRY-}${image}${tag}"
done
fi
Expand All @@ -92,11 +94,13 @@ fi

if [[ "${OS_PUSH_BASE_REGISTRY-}" != "" || "${tag}" != "" ]]; then
for image in "${images[@]}"; do
os::log::info "Tagging ${image}:${source_tag} as ${OS_PUSH_BASE_REGISTRY-}${image}${tag}..."
docker tag "${image}:${source_tag}" "${OS_PUSH_BASE_REGISTRY-}${image}${tag}"
done
fi

for image in "${images[@]}"; do
os::log::info "Pushing ${OS_PUSH_BASE_REGISTRY-}${image}${tag}..."
docker push ${PUSH_OPTS} "${OS_PUSH_BASE_REGISTRY-}${image}${tag}"
done

Expand Down

0 comments on commit cf83ff4

Please sign in to comment.