Skip to content

Commit

Permalink
auto-deploy to production. datacite/datacite#537
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 6, 2018
1 parent c9b5044 commit 22f6309
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,22 @@ 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/_content-negotiation.auto.tfvars.tmpl:mastino/stage/services/data/_content-negotiation.auto.tfvars;

if [ "${TRAVIS_TAG?}" ]; then
./dockerize -template vendor/docker/_content-negotiation.auto.tfvars.tmpl:mastino/prod-eu-west/services/data/_content-negotiation.auto.tfvars;
fi

cd mastino;
git remote;
git config user.email ${DOCKER_EMAIL};
git config user.name ${DOCKER_USERNAME};
git add stage/services/data/_content-negotiation.auto.tfvars;

if [ "${TRAVIS_TAG?}" ]; then
git add prod-eu-west/services/data/_content-negotiation.auto.tfvars;
else
git add stage/services/data/_content-negotiation.auto.tfvars;
fi

git commit -m "Adding content-negotiation git variables for latest commit";
git push "https://${TRAVIS_SECURE_TOKEN}@github.com/datacite/mastino.git" master;
fi
Expand Down

0 comments on commit 22f6309

Please sign in to comment.