Update CD script

This commit is contained in:
Sergey Stepanov 2021-08-25 15:40:16 +03:00
parent 766b9ae6a4
commit 3248ad37f2
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B

View file

@ -200,10 +200,11 @@ for ip in $IP_LIST; do
remote_sudo_run_once $ip "$PROVIDER_DIR" "$ssh_i"
remote_sudo_run_once $ip "$ENV_DIR" "$ssh_i"
echo "Update the remote host"
echo "Update the remote host"$'\n'
echo "$compose_src"
ssh -o ConnectTimeout=10 $USER@$ip ${ssh_i:-} "\
docker-compose -v \
docker-compose -v; \
mkdir -p $REMOTE_WORK_DIR; \
cd $REMOTE_WORK_DIR; \
echo '$compose_src' > ./docker-compose.yml; \