Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Deploy to staging.
Browse files Browse the repository at this point in the history
  • Loading branch information
philwinder committed Aug 22, 2016
1 parent 8a2b8c9 commit ca9cc80
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Binary file added queue-master_deploy_rsa.enc
Binary file not shown.

0 comments on commit ca9cc80

Please sign in to comment.