Skip to content

Commit fc46cf8

Browse files
authored
delivery binary into experimental servers on deploy develop (#1349)
delivery binary into experimental servers on deploy develop (#1349)
1 parent e1fc323 commit fc46cf8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.circleci/config.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -131,25 +131,25 @@ jobs:
131131
paths:
132132
- ./dist
133133
- run:
134-
name: ADD HOSTS
135-
command: |
136-
ssh-keyscan $ln4 >> ~/.ssh/known_hosts
134+
name: ADD HOSTS
135+
command: |
136+
for host in $x1 $x2 $x3; do ssh-keyscan $host >> ~/.ssh/known_hosts; done
137137
# for host in $ln1 $ln2 $ln3; do ssh-keyscan $host >> ~/.ssh/known_hosts; done
138138
- run:
139-
name: DOWN SERVICES
140-
command: |
141-
ssh root@$ln4 'sudo systemctl stop zoobc.service'
139+
name: DOWN SERVICES
140+
command: |
141+
for host in $x1 $x2 $x3; do ssh root@$host 'sudo systemctl stop zoobc.service'; done
142142
# for host in $ln1 $ln2 $ln3; do ssh root@$host 'sudo systemctl stop zoobc.service'; done
143143
- run: *reset_dbs
144144
- run:
145-
name: DEPLOY
146-
command: |
147-
rsync -vae ssh ./dist/ root@$ln4:/root/zoobc --exclude='*.db' --exclude='generated'
145+
name: DEPLOY
146+
command: |
147+
for host in $x1 $x2 $x3; do rsync -vae ssh ./dist/ root@$host:/root/zoobc --exclude='*.db' --exclude='generated'; done
148148
# for host in $ln1 $ln2 $ln3; do rsync -vae ssh ./dist/ root@$host:/root/zoobc --exclude='*.db' --exclude='generated'; done
149149
- run:
150-
name: UP SERVICES
151-
command: |
152-
ssh root@$ln4 'sudo systemctl start zoobc.service'
150+
name: UP SERVICES
151+
command: |
152+
for host in $x1 $x2 $x3; do ssh root@$host 'sudo systemctl start zoobc.service'; done
153153
# for host in $ln1 $ln2 $ln3; do ssh root@$host 'sudo systemctl start zoobc.service'; done
154154
deploy-staging:
155155
<<: *defaults

0 commit comments

Comments
 (0)