Skip to content

Commit

Permalink
Tag images with commit SHA (#1082)
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 27, 2018
1 parent 01ff822 commit d73db1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/travis/upload-to-docker.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ set -x
docker login -u $DOCKER_USER -p $DOCKER_PASS
# push all tags, therefore push to repo
docker push $REPO

SNAPSHOT_IMAGE="$REPO-snapshot:$TRAVIS_COMMIT"
echo "Pushing snapshot image $SNAPSHOT_IMAGE"
docker tag $IMAGE $SNAPSHOT_IMAGE
docker push $SNAPSHOT_IMAGE

0 comments on commit d73db1e

Please sign in to comment.