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

Commit 4b46cb5

Browse files
author
Phil Winder
authored
Merge pull request #4 from microservices-demo/deploy/staging
Deploy to staging.
2 parents 8a2b8c9 + ca9cc80 commit 4b46cb5

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jdk:
77
install: true
88

99
env:
10-
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG;
10+
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=queue-master;
1111

1212
script:
1313
- set -e
@@ -25,3 +25,20 @@ after_success:
2525
fi;
2626
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS;
2727
- ./scripts/push.sh
28+
29+
before_install:
30+
- openssl aes-256-cbc -K $encrypted_24f2ff63c32d_key -iv $encrypted_24f2ff63c32d_iv
31+
-in queue-master_deploy_rsa.enc -out queue-master_deploy_rsa -d
32+
before_deploy:
33+
- eval "$(ssh-agent -s)"
34+
- chmod 600 $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa
35+
- ssh-add $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa
36+
addons:
37+
ssh_known_hosts: $BASTION
38+
deploy:
39+
provider: script
40+
skip_cleanup: true
41+
# The deploy.sh file points to the deploy file on the bastion. Not one in the repo.
42+
script: ssh -o StrictHostKeyChecking=no $BASTION_USER@$BASTION ./deploy.sh ${REPO} $COMMIT
43+
on:
44+
branch: master

queue-master_deploy_rsa.enc

3.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)