2017-04-21 09:23:45 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-11-14 16:41:12 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ -n "$TRAVIS_COMMIT" ]; then
|
|
|
|
echo "Deploying PR..."
|
|
|
|
else
|
|
|
|
echo "Skipping deploy PR"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
# create docker image containous/traefik
|
|
|
|
echo "Updating docker containous/traefik image..."
|
2017-06-27 20:56:19 +00:00
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
2016-11-14 16:41:12 +00:00
|
|
|
docker tag containous/traefik containous/traefik:${TRAVIS_COMMIT}
|
|
|
|
docker push containous/traefik:${TRAVIS_COMMIT}
|
|
|
|
docker tag containous/traefik containous/traefik:experimental
|
|
|
|
docker push containous/traefik:experimental
|
|
|
|
|
|
|
|
echo "Deployed"
|