From 2f426d0f4e26980ddffddb77b37c599959b7face Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Mon, 2 Dec 2024 16:48:14 +0800 Subject: [PATCH] fix: update github workflow --- .github/workflows/testnet_deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testnet_deploy.yml b/.github/workflows/testnet_deploy.yml index a39438c..4ce8e8a 100644 --- a/.github/workflows/testnet_deploy.yml +++ b/.github/workflows/testnet_deploy.yml @@ -36,7 +36,7 @@ jobs: if [ -d "\$REPO_PATH/.git" ]; then echo "Repository exists, pulling changes..." cd \$REPO_PATH - sudo docker-compose down + sudo docker compose down git reset --hard HEAD git pull else @@ -51,5 +51,6 @@ jobs: sudo chmod -R 755 \$REPO_PATH aws s3 cp s3://$AWS_PATH/ \$REPO_PATH --recursive - sudo docker-compose up --build -d + # Use docker compose + sudo docker compose up --build -d EOF