diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a1f4dbd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +sudo: required + +services: + - docker + +deploy: + provider: script + script: bash scripts/build-push.sh + on: + branch: master diff --git a/scripts/build-push.sh b/scripts/build-push.sh new file mode 100644 index 0000000..f93fa1c --- /dev/null +++ b/scripts/build-push.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e +set -x + +echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + +docker build -t tiangolo/node-frontend:10 . + +docker build -t tiangolo/node-frontend:latest . + +docker push tiangolo/node-frontend:10 + +docker push tiangolo/node-frontend:latest