Skip to content

Commit

Permalink
chnages in cloud run deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
YASH-PATEL1221 committed May 24, 2024
1 parent b124c60 commit b16d113
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,22 @@ jobs:
# END - Docker auth and build

# - name: Deploy to Cloud Run
# id: deploy
# uses: google-github-actions/deploy-cloudrun@v1
# with:
# service: ${{ env.SERVICE }}
# region: ${{ env.REGION }}
# # 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: Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v1
with:
service: ${{ env.SERVICE }}
region: ${{ env.REGION }}
# 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 }}
run: |
gcloud run deploy my-app \
--image ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/nodecicd:${{ github.sha }} \
--platform managed \
--region us-east1 \
--allow-unauthenticated
env:
GCP_PROJECT_ID: ${{ env.PROJECT_ID }}
Expand Down

0 comments on commit b16d113

Please sign in to comment.