Docker & adding travis

This commit is contained in:
Azlux
2020-07-16 22:08:54 +02:00
parent e595ea861b
commit 158731b3fa
5 changed files with 64 additions and 0 deletions

13
travis_deploy.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
fi
docker build -t mumo .
docker images
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
docker tag mumo $DOCKER_USERNAME/mumo
docker push $DOCKER_USERNAME/mumo
fi