Commit 4b46cb5e authored by Phil Winder's avatar Phil Winder Committed by GitHub

Merge pull request #4 from microservices-demo/deploy/staging

Deploy to staging.
parents 8a2b8c9b ca9cc808
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment