Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
anusha267 committed Nov 3, 2024
1 parent 34af680 commit ff9e975
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,16 @@ jobs:
create_credentials_file: true
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Build and Deploy to Cloud Run
run: |
gcloud builds submit --tag gcr.io/${{ secrets.GCP_PROJECT_ID }}/bookenzy
gcloud run deploy your-service-name \
--image gcr.io/${{ secrets.GCP_PROJECT_ID }}/bookenzy \
--platform managed \
--region asia-south2 \
--allow-unauthenticated
- name: Build Docker Image
run: docker build -t your-project-name/your-api-name:latest .

- name: Push Docker Image to Container Registry
run: docker push your-project-name/your-api-name:latest

- name: Deploy to Cloud Run
uses: google-github-actions/deploy-cloudrun@v0
with:
image: your-project-name/bookenzy-backend:latest
service: bookenzy-backend
project: ${{ secrets.GCP_PROJECT_ID }}
credentials: ${{ secrets.GCP_SA_KEY }}

0 comments on commit ff9e975

Please sign in to comment.