genienlp/dockerfiles/hooks/post_push

16 lines
221 B
Bash
Executable File

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