Skip to content

Commit

Permalink
updated gcr deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhakkeempa committed Jul 22, 2024
1 parent f5bc9e6 commit 40795db
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,25 @@ jobs:
working-directory: backend
# END - Docker auth and build

# - name: Deploy to Cloud Run
# id: deploy
# uses: google-github-actions/deploy-cloudrun@v2
# with:
# service: ${{ env.SERVICE }}
# region: ${{ env.REGION }}
# image: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ github.sha }}
# platform: managed
# allow-unauthenticated: true
# port: 8080

- name: Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v2
with:
service: ${{ env.SERVICE }}
region: ${{ env.REGION }}
image: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ github.sha }}
platform: managed
allow-unauthenticated: true
port: 8080
run: |-
gcloud run deploy ${ env.SERVICE } \
--image="${ env.GAR_LOCATION }-docker.pkg.dev/${ env.PROJECT_ID }/${ env.SERVICE }:${ github.sha }" \
--region="${ env.GAR_LOCATION }" \
--platform=managed \
--allow-unauthenticated \
--port=8080
# If required, use the Cloud Run url output in later steps
- name: Show Output
Expand Down

0 comments on commit 40795db

Please sign in to comment.