File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -131,25 +131,25 @@ jobs:
131
131
paths :
132
132
- ./dist
133
133
- 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
137
137
# for host in $ln1 $ln2 $ln3; do ssh-keyscan $host >> ~/.ssh/known_hosts; done
138
138
- 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
142
142
# for host in $ln1 $ln2 $ln3; do ssh root@$host 'sudo systemctl stop zoobc.service'; done
143
143
- run : *reset_dbs
144
144
- 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
148
148
# for host in $ln1 $ln2 $ln3; do rsync -vae ssh ./dist/ root@$host:/root/zoobc --exclude='*.db' --exclude='generated'; done
149
149
- 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
153
153
# for host in $ln1 $ln2 $ln3; do ssh root@$host 'sudo systemctl start zoobc.service'; done
154
154
deploy-staging :
155
155
<< : *defaults
You can’t perform that action at this time.
0 commit comments