mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Update CD script
This commit is contained in:
parent
d7ea8690f4
commit
9e7dac91b4
1 changed files with 8 additions and 7 deletions
15
.github/workflows/cd/deploy-app.sh
vendored
15
.github/workflows/cd/deploy-app.sh
vendored
|
|
@ -129,13 +129,6 @@ echo "IPs:" $IP_LIST
|
|||
# if the current server address is found in the IP_LIST variable, otherwise it
|
||||
# will run just the worker app.
|
||||
#
|
||||
# build run command
|
||||
cmd="ZONE=\$zone docker-compose up -d --remove-orphans --scale worker=\${workers:-$WORKERS}"
|
||||
if [ ! -z "$SPLIT_HOSTS" ]; then
|
||||
cmd+=" worker"
|
||||
deploy_coordinator=0
|
||||
deploy_worker=1
|
||||
fi
|
||||
|
||||
for ip in $IP_LIST; do
|
||||
# flags
|
||||
|
|
@ -148,6 +141,14 @@ for ip in $IP_LIST; do
|
|||
ssh-keyscan $ip >> ~/.ssh/known_hosts
|
||||
fi
|
||||
|
||||
# build run command
|
||||
cmd="ZONE=\$zone docker-compose up -d --remove-orphans --scale worker=\${workers:-$WORKERS}"
|
||||
if [ ! -z "$SPLIT_HOSTS" ]; then
|
||||
cmd+=" worker"
|
||||
deploy_coordinator=0
|
||||
deploy_worker=1
|
||||
fi
|
||||
|
||||
# override run command
|
||||
if [ ! -z "$SPLIT_HOSTS" ]; then
|
||||
for addr in $COORDINATORS; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue