Skip to content

Commit a29989c

Browse files
authored
Update cd.yml
1 parent 32f47db commit a29989c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ jobs:
4949
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
5050

5151
- name: Deploy to GCP Compute Engine
52-
uses: google-github-actions/ssh-compute@v1
52+
id: 'compute-ssh'
53+
uses: 'google-github-actions/ssh-compute@v1'
5354
with:
5455
instance_name: ${{ secrets.GCP_INSTANCE_NAME }}
5556
zone: ${{ secrets.GCP_INSTANCE_ZONE }}
5657
ssh_private_key: ${{ secrets.GCP_SSH_PRIVATE_KEY }}
5758
command: |
58-
cd /app/${{ github.repository }}
59+
mkdir ./${{ github.repository }}
60+
cd ./${{ github.repository }}
5961
sudo curl -o docker-compose.yml https://raw.githubusercontent.com/${{ github.repository }}/main/docker-compose.yml
6062
sudo docker-compose down
6163
sudo docker-compose up -d ${{ secrets.DOCKER_IMAGE_NAME }}

0 commit comments

Comments
 (0)