genienlp/dockerfiles/hooks/post_push

16 lines
221 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
set -x
echo "Running in $(pwd)"
version=$(git describe)
2021-10-18 17:18:13 +00:00
case $IMAGE_NAME in
*-cuda)
version=${version}-cuda
;;
esac
docker tag $IMAGE_NAME $DOCKER_REPO:$version
docker push $DOCKER_REPO:$version