Skip to content

Commit

Permalink
Update google-cloudrun-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
satrio142 authored Dec 7, 2023
1 parent 9f0472f commit 34300d6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches: [ "main" ]

env:
gar_location: /capstone-project-mubazirapp/capstone/ml
service: mubazir

jobs:
build_and_deploy:
Expand Down Expand Up @@ -38,12 +35,12 @@ jobs:
context: .
push: true
no-cache: false
tags: gcr.io/${{ secrets.PROJECT_ID }}/${{ env.gar_location }}:latest
tags: gcr.io/${{ secrets.PROJECT_ID }}/${{ secrets.GAR_LOCATION }}:latest

- name: Deploy to Cloud Run
run: |
gcloud run deploy ${{ env.service }} \
--image gcr.io/${{ secrets.PROJECT_ID }}/${{ env.gar_location }}:latest \
gcloud run deploy ${{ secrets.SERVICE }} \
--image gcr.io/${{ secrets.PROJECT_ID }}/${{ secrets.GAR_LOCATION }}:latest \
--region ${{ secrets.REGION }} \
--platform managed \
--allow-unauthenticated

0 comments on commit 34300d6

Please sign in to comment.