Skip to content

Commit

Permalink
Tag images with commit SHA
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay committed Sep 25, 2018
1 parent 01ff822 commit b946490
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/travis/upload-to-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ else
# TODO why do we do /// ?
TAG="${BRANCH///}"
fi
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, BRANCH=$BRANCH, TAG=$TAG, IMAGE=$IMAGE"
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, BRANCH=$BRANCH, TAG=$TAG, IMAGE=$IMAGE, SHA=$TRAVIS_COMMIT"

docker tag $IMAGE $REPO:$TRAVIS_COMMIT

# add major, major.minor and major.minor.patch tags
if [[ -n $major ]]; then
Expand Down

0 comments on commit b946490

Please sign in to comment.