File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments