Skip to content

Commit

Permalink
ssh, correct discord version announce
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Apr 13, 2018
1 parent cce4cce commit 42ce539
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 42ce539

Please sign in to comment.