diff --git a/.travis.yml b/.travis.yml index 18116b872..1ab502f46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,10 +22,10 @@ matrix: - echo $TRAVIS_EVENT_TYPE - docker-compose build - docker build -t doctl -f ./doctl . - - docker run --rm -e DIGITALOCEAN_ACCESS_TOKEN="${DIGITALOCEAN_ACCESS_TOKEN}" doctl compute ssh ${DIGITALOCEAN_ALPHA_SERVER_DROPLET_NAME} --ssh-user "${DIGITALOCEAN_ALPHA_SERVER_USER}" --ssh-command "~/democracy-development/start-production.sh" + - docker run --rm -e DIGITALOCEAN_ACCESS_TOKEN="${DIGITALOCEAN_ACCESS_TOKEN}" doctl compute ssh ${DIGITALOCEAN_ALPHA_SERVER_USER}@${DIGITALOCEAN_ALPHA_SERVER_DROPLET_NAME} --ssh-command "~/democracy-development/start-production.sh" after_success: - - "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"SUCCESS: New Server Alpha Version $TRAVIS_BUILD_NUMBER available!\\\"}\" ${DISCORD_WEBHOOK}" + - "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"SUCCESS: New Server Alpha Version $TRAVIS_TAG : $TRAVIS_BUILD_NUMBER available!\\\"}\" ${DISCORD_WEBHOOK}" after_failure: - - "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"FAILURE: Deploying new Server Alpha Version $TRAVIS_BUILD_NUMBER failed!\\\"}\" ${DISCORD_WEBHOOK}" + - "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"FAILURE: Deploying new Server Alpha Version $TRAVIS_TAG : $TRAVIS_BUILD_NUMBER failed!\\\"}\" ${DISCORD_WEBHOOK}" after_script: - echo "BUILD FINISHED" \ No newline at end of file