genienlp/dockerfiles/hooks/post_push

22 lines
325 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
;;
*-cuda-kfserver)
version=${version}-cuda-kfserver
;;
*-kfserver)
version=${version}-kfserver
;;
esac
docker tag $IMAGE_NAME $DOCKER_REPO:$version
docker push $DOCKER_REPO:$version