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 c3e3e63 commit 750ffdc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
create_credentials_file: true
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Build and Push with Cloud Build
- name: Build and Push to Google Container Registry
run: |
gcloud builds submit --tag gcr.io/${{ secrets.GCP_PROJECT_ID }}/bookenzy-backend:latest \
--build-arg DATABASE_URL=${{ secrets.DATABASE_URL_PROD }} \
--build-arg BOOKENZY_JWT_SECRET=${{ secrets.JWT_SECRET_PROD }} .
gcloud auth configure-docker
docker build -t gcr.io/${{ secrets.GCP_PROJECT_ID }}/bookenzy-backend:latest .
docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/bookenzy-backend:latest
- name: Deploy to Cloud Run
uses: google-github-actions/deploy-cloudrun@v2
Expand All @@ -50,4 +50,6 @@ jobs:
region: asia-south2
allow_unauthenticated: true
credentials_json: ${{ secrets.GCP_SA_KEY }}
set-env-vars: DATABASE_URL=${{ secrets.DATABASE_URL_PROD }},BOOKENZY_JWT_SECRET=${{ secrets.JWT_SECRET_PROD }} # Add your environment variables here
set-env-vars: |
DATABASE_URL=${{ secrets.DATABASE_URL_PROD }},
BOOKENZY_JWT_SECRET=${{ secrets.JWT_SECRET_PROD }}

0 comments on commit 750ffdc

Please sign in to comment.