deploy.sh 268 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWD

docker push argonneeic/base:latest

tag=$(git describe --exact-match --tags HEAD)
if [ "$?" == "0" ]; then
    docker tag argonneeic/base argonneeic/base:$tag
    docker push argonneeic/base:$tag
fi