Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
邱宇軒Yuh Suan Chiu committed Feb 10, 2024
1 parent 8d54761 commit 50e7115
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-docker-gce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/snap_up_thsr:latest
tags: arcade0425/snap_up_thsr:latest

deploy:
needs: build
Expand All @@ -30,8 +30,8 @@ jobs:

- name: Deploy to GCE
run: |
gcloud compute ssh {{ secrets.GCP_USER }}@{{ secrets.GCP_INSTANCE }} --zone={{ variables.INSTANCE_REGION }} -- "cd snap_up_thsr && \
git pull && \
gcloud compute ssh ${{ secrets.GCP_USER }}@${{ secrets.GCP_INSTANCE }} --zone=${{ variables.INSTANCE_REGION }} -- "cd snap_up_thsr && \
docker pull arcade0425/snap_up_thsr:latest && \
docker run --network=${{ secrets.LIVE_NETWORK }} \
-p 8080:8000 \
-e REDIS_HOST=${{ secrets.REDIS_HOST }} \
Expand All @@ -43,4 +43,4 @@ jobs:
-d \
--restart=always \
--name snap_up_thsr \
${{ secrets.DOCKER_HUB_USERNAME }}/snap_up_thsr:latest
arcade0425/snap_up_thsr:latest

0 comments on commit 50e7115

Please sign in to comment.