Skip to content

Commit

Permalink
deploy tagged version also to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed May 29, 2020
1 parent 2b754ce commit c1396d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ after_success:

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;
./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/test/services/client-api/_lupo.auto.tfvars;

sentry-cli releases new lupo:${GIT_TAG} --finalize --project lupo;

if [ "${TRAVIS_TAG?}" ]; then
./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/prod-eu-west/services/client-api/_lupo.auto.tfvars;
./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/test/services/client-api/_lupo.auto.tfvars;
sentry-cli releases deploys lupo:${GIT_TAG} new -e production;
else
sentry-cli releases deploys lupo:${GIT_TAG} new -e stage;
Expand All @@ -91,10 +91,10 @@ after_success:

if [ "${TRAVIS_TAG?}" ]; then
git add prod-eu-west/services/client-api/_lupo.auto.tfvars;
git add test/services/client-api/_lupo.auto.tfvars;
git commit -m "Adding lupo git variables for commit tagged ${TRAVIS_TAG?}";
git push "https://${TRAVIS_SECURE_TOKEN}@github.com/datacite/mastino.git" master;
else
git add test/services/client-api/_lupo.auto.tfvars;
git add stage/services/client-api/_lupo.auto.tfvars;
git commit -m "Adding lupo git variables for latest commit";
git push "https://${TRAVIS_SECURE_TOKEN}@github.com/datacite/mastino.git" master;
Expand Down

0 comments on commit c1396d5

Please sign in to comment.