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"