65f81990a7
… instead of /bin/bash, to work better on more platforms. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
19 lines
523 B
Bash
19 lines
523 B
Bash
#!/usr/bin/env bash
|
|
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..."
|
|
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
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"
|