Skip to content

Commit

Permalink
cleanup, test for ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Apr 13, 2018
1 parent 42ce539 commit 2d914f7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ matrix:
before_install:
- openssl aes-256-cbc -K $encrypted_fd73522261db_key -iv $encrypted_fd73522261db_iv -in .env.enc -out ./server/.env -d
script:
- echo $TRAVIS_TAG
- echo $TRAVIS_BRANCH
- echo $TRAVIS_EVENT_TYPE
- ssh
- 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_USER}@${DIGITALOCEAN_ALPHA_SERVER_DROPLET_NAME} --ssh-command "~/democracy-development/start-production.sh"
- 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"
after_success:
- "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"SUCCESS: New Server Alpha Version $TRAVIS_TAG : $TRAVIS_BUILD_NUMBER available!\\\"}\" ${DISCORD_WEBHOOK}"
- "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"SUCCESS: New Server Alpha Version $TRAVIS_TAG deployed!\\\"}\" ${DISCORD_WEBHOOK}"
after_failure:
- "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"FAILURE: Deploying new Server Alpha Version $TRAVIS_TAG : $TRAVIS_BUILD_NUMBER failed!\\\"}\" ${DISCORD_WEBHOOK}"
- "curl -H 'Content-Type: application/json' -X POST -d \"{\\\"content\\\":\\\"FAILURE: Deploying new Server Alpha Version $TRAVIS_TAG failed!\\\"}\" ${DISCORD_WEBHOOK}"
after_script:
- echo "BUILD FINISHED"

0 comments on commit 2d914f7

Please sign in to comment.