Skip to content

Commit

Permalink
use google-github-actions/deploy-cloudrun@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
epiccoolguy committed Jan 30, 2024
1 parent a427825 commit 8571f3a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ jobs:
version: ">= 461.0.0"

- name: "Deploy to Cloud Run"
run: |
gcloud run deploy ${{ vars.GOOGLE_SERVICE_NAME }} \
--image="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}" \
--set-env-vars="HOST_PATTERN=${{ vars.HOST_PATTERN }},HOST_REPLACEMENT=${{ vars.HOST_REPLACEMENT }},PATH_PATTERN=${{ vars.PATH_PATTERN }},PATH_REPLACEMENT=${{ vars.PATH_REPLACEMENT }}" \
--no-allow-unauthenticated \
--region="${{ vars.GOOGLE_SERVICE_REGION }}" \
--project="${{ vars.GOOGLE_PROJECT_ID }}"
uses: "google-github-actions/deploy-cloudrun@v2"
with:
service: "hello-cloud-run"
image: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}"
env_vars: |
HOST_PATTERN=${{ vars.HOST_PATTERN }}
HOST_REPLACEMENT=${{ vars.HOST_REPLACEMENT }}
PATH_PATTERN=${{ vars.PATH_PATTERN }}
PATH_REPLACEMENT=${{ vars.PATH_REPLACEMENT }}
region: "${{ vars.GOOGLE_SERVICE_REGION }}"
project_id: "${{ vars.GOOGLE_PROJECT_ID }}"

0 comments on commit 8571f3a

Please sign in to comment.