diff --git a/.travis.yml b/.travis.yml index d2054b401..e1197a27b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,7 +79,13 @@ after_success: if [ "${TRAVIS_TAG?}" ]; then ./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/prod-eu-west/services/client-api/_lupo.auto.tfvars; + sentry-cli releases new lupo:${GIT_TAG} --finalize --project lupo; + sentry-cli releases deploys lupo:${GIT_TAG} new -e production; + else + sentry-cli releases deploys lupo:${GIT_TAG} new -e stage; fi + + sentry-cli releases set-commits --auto lupo:${GIT_TAG}; cd mastino; git remote; @@ -95,15 +101,6 @@ after_success: git commit -m "Adding lupo git variables for latest commit"; git push "https://${TRAVIS_SECURE_TOKEN}@github.com/datacite/mastino.git" master; fi - - if [ "${TRAVIS_TAG?}" ]; then - sentry-cli releases new lupo:${GIT_TAG} --finalize --project lupo; - sentry-cli releases deploys lupo:${GIT_TAG} new -e production; - else - sentry-cli releases deploys lupo:${GIT_TAG} new -e stage; - fi - - sentry-cli releases set-commits --auto lupo:${GIT_TAG}; fi notifications: