Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
Benno Lin committed Mar 20, 2024
1 parent 20681a1 commit 56bc3ad
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
# Auth
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@main
- uses: google-github-actions/setup-gcloud@v2
with:
version: "290.0.1"
service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.RUN_PROJECT }}
# Configure Docker to use the gcloud command-line tool as a credential
# helper for authentication
Expand All @@ -34,8 +37,7 @@ jobs:
run: |-
docker push "gcr.io/$PROJECT_ID/benno-lin-web"
- name: Deploy
uses: google-github-actions/deploy-cloudrun@main
uses: google-github-actions/deploy-cloudrun@v2
with:
image: gcr.io/${{ secrets.RUN_PROJECT }}/benno-lin-web
service: benno-lin-web
credentials: ${{ secrets.GCP_SA_KEY }}

0 comments on commit 56bc3ad

Please sign in to comment.