From d7ea8690f4d42adb11d7d474faee0551eb4ccdf4 Mon Sep 17 00:00:00 2001 From: Sergey Stepanov Date: Wed, 25 Aug 2021 16:04:06 +0300 Subject: [PATCH] Update CD script --- .github/workflows/cd/deploy-app.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd/deploy-app.sh b/.github/workflows/cd/deploy-app.sh index 76ddc6b0..c3ffa47d 100755 --- a/.github/workflows/cd/deploy-app.sh +++ b/.github/workflows/cd/deploy-app.sh @@ -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"