Skip to content

Commit

Permalink
More verbosity in tag-push-images
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaceccanti committed Dec 8, 2021
1 parent 7bb00c6 commit 40f9bcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/tag-push-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if [[ $# -ne 1 ]]; then
exit 1
fi


IMAGES="indigoiam/iam-login-service-bp indigoiam/iam-test-client-bp indigoiam/voms-aa-bp"
# The current script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand All @@ -17,7 +18,9 @@ TAG=$1
GIT_HEAD_SHA=$(git rev-parse --short HEAD)
GIT_COMMIT_SHA=${GIT_HEAD_SHA:0:7}


for img in ${IMAGES}; do
echo "Tagging ${img}:${POM_VERSION}-${GIT_COMMIT_SHA} -> ${img}:${TAG}"
docker tag ${img}:${POM_VERSION}-${GIT_COMMIT_SHA} ${img}:${TAG}
docker push ${img}:${TAG}
docker push ${img}:${POM_VERSION}-${GIT_COMMIT_SHA}
Expand Down

0 comments on commit 40f9bcf

Please sign in to comment.