From 32a6b3b6c6c6f6c1a9dd46d8f4130d3065cfcb80 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 26 Sep 2018 13:31:53 +0200 Subject: [PATCH] auto-deploy to production --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1fd8487f5..2740a5013 100644 --- a/.travis.yml +++ b/.travis.yml @@ -71,6 +71,11 @@ after_success: export GIT_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)); git clone "https://${TRAVIS_SECURE_TOKEN}@github.com/datacite/mastino.git"; ./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/stage/services/client-api/_lupo.auto.tfvars; + + if [ "${TRAVIS_TAG?}" ]; then + ./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/prod-eu-west/services/client-api/_lupo.auto.tfvars; + fi + cd mastino; git remote; git config user.email ${DOCKER_EMAIL};