diff --git a/.travis.yml b/.travis.yml index 267cc9b..189cacf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ jdk: install: true env: - - GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG; + - GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=queue-master; script: - set -e @@ -25,3 +25,20 @@ after_success: fi; - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS; - ./scripts/push.sh + +before_install: +- openssl aes-256-cbc -K $encrypted_24f2ff63c32d_key -iv $encrypted_24f2ff63c32d_iv + -in queue-master_deploy_rsa.enc -out queue-master_deploy_rsa -d +before_deploy: + - eval "$(ssh-agent -s)" + - chmod 600 $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa + - ssh-add $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa +addons: + ssh_known_hosts: $BASTION +deploy: + provider: script + skip_cleanup: true + # The deploy.sh file points to the deploy file on the bastion. Not one in the repo. + script: ssh -o StrictHostKeyChecking=no $BASTION_USER@$BASTION ./deploy.sh ${REPO} $COMMIT + on: + branch: master diff --git a/queue-master_deploy_rsa.enc b/queue-master_deploy_rsa.enc new file mode 100644 index 0000000..9b2006a Binary files /dev/null and b/queue-master_deploy_rsa.enc differ