Skip to content

Deliver binary into experimental servers on deploy develop #1349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,25 +131,25 @@ jobs:
paths:
- ./dist
- run:
name: ADD HOSTS
command: |
ssh-keyscan $ln4 >> ~/.ssh/known_hosts
name: ADD HOSTS
command: |
for host in $x1 $x2 $x3; do ssh-keyscan $host >> ~/.ssh/known_hosts; done
# for host in $ln1 $ln2 $ln3; do ssh-keyscan $host >> ~/.ssh/known_hosts; done
- run:
name: DOWN SERVICES
command: |
ssh root@$ln4 'sudo systemctl stop zoobc.service'
name: DOWN SERVICES
command: |
for host in $x1 $x2 $x3; do ssh root@$host 'sudo systemctl stop zoobc.service'; done
# for host in $ln1 $ln2 $ln3; do ssh root@$host 'sudo systemctl stop zoobc.service'; done
- run: *reset_dbs
- run:
name: DEPLOY
command: |
rsync -vae ssh ./dist/ root@$ln4:/root/zoobc --exclude='*.db' --exclude='generated'
name: DEPLOY
command: |
for host in $x1 $x2 $x3; do rsync -vae ssh ./dist/ root@$host:/root/zoobc --exclude='*.db' --exclude='generated'; done
# for host in $ln1 $ln2 $ln3; do rsync -vae ssh ./dist/ root@$host:/root/zoobc --exclude='*.db' --exclude='generated'; done
- run:
name: UP SERVICES
command: |
ssh root@$ln4 'sudo systemctl start zoobc.service'
name: UP SERVICES
command: |
for host in $x1 $x2 $x3; do ssh root@$host 'sudo systemctl start zoobc.service'; done
# for host in $ln1 $ln2 $ln3; do ssh root@$host 'sudo systemctl start zoobc.service'; done
deploy-staging:
<<: *defaults
Expand Down