mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
Update CD script
This commit is contained in:
parent
2247725eb1
commit
d7ea8690f4
1 changed files with 4 additions and 3 deletions
7
.github/workflows/cd/deploy-app.sh
vendored
7
.github/workflows/cd/deploy-app.sh
vendored
|
|
@ -129,9 +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.
|
||||
#
|
||||
# flags
|
||||
deploy_coordinator=1
|
||||
deploy_worker=1
|
||||
# build run command
|
||||
cmd="ZONE=\$zone docker-compose up -d --remove-orphans --scale worker=\${workers:-$WORKERS}"
|
||||
if [ ! -z "$SPLIT_HOSTS" ]; then
|
||||
|
|
@ -141,6 +138,10 @@ if [ ! -z "$SPLIT_HOSTS" ]; then
|
|||
fi
|
||||
|
||||
for ip in $IP_LIST; do
|
||||
# flags
|
||||
deploy_coordinator=1
|
||||
deploy_worker=1
|
||||
|
||||
echo "Processing "$ip
|
||||
if ! ssh-keygen -q -F $ip &>/dev/null; then
|
||||
echo "Adding new host to the known_hosts file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue