From adc1f28e69594e0bea8e0f141d4b44062c30551d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=8A=B9=EC=A7=84?= Date: Wed, 15 Nov 2023 19:10:08 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20=ED=8C=8C=EC=9D=BC=EB=AA=85=20?= =?UTF-8?q?=EC=A4=91=EB=B3=B5=EC=9C=BC=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20?= =?UTF-8?q?=EB=94=94=EB=A0=89=ED=84=B0=EB=A6=AC=EB=AA=85=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend-cd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backend-cd.yml b/.github/workflows/backend-cd.yml index 646446b7..9e608763 100644 --- a/.github/workflows/backend-cd.yml +++ b/.github/workflows/backend-cd.yml @@ -60,4 +60,6 @@ jobs: - name: Deploy to GCE with Docker Compose run: | - gcloud compute ssh twtw-server --zone=${{ secrets.GCP_ZONE }} --command="cd ~/twtw && sudo docker-compose up --build -d" + gcloud compute ssh twtw-server --zone=${{ secrets.GCP_ZONE }} --command="mkdir -p ~/backend" + gcloud compute scp docker-compose.yml twtw-server:~/backend/ --zone=${{ secrets.GCP_ZONE }} + gcloud compute ssh twtw-server --zone=${{ secrets.GCP_ZONE }} --command="cd ~/backend && sudo docker-compose up --build -d"