mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-08-03 15:23:33 +00:00
Update CD script
This commit is contained in:
parent
766b9ae6a4
commit
3248ad37f2
1 changed files with 3 additions and 2 deletions
5
.github/workflows/cd/deploy-app.sh
vendored
5
.github/workflows/cd/deploy-app.sh
vendored
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue