Skip to content

Commit

Permalink
allow unauth access to cloud run
Browse files Browse the repository at this point in the history
  • Loading branch information
YASH-PATEL1221 committed May 24, 2024
1 parent 94b59d1 commit b61b7e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ jobs:
# NOTE: If using a pre-built image, update the image name here
image: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}${{ env.SERVICE }}/nodecicd:${{ github.sha }}

- name: Allow unauthenticated access
run: |
gcloud run services add-iam-policy-binding ${{ env.SERVICE }} \
--region ${{ env.REGION }} \
--member="allUsers" \
--role="roles/run.invoker"
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
SERVICE: ${{ env.SERVICE }}
REGION: ${{ env.REGION }}

# If required, use the Cloud Run url output in later steps
- name: Show Output
run: echo ${{ steps.deploy.outputs.url }}

0 comments on commit b61b7e1

Please sign in to comment.