Skip to content

Commit

Permalink
add env vars in deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Clerkx committed Dec 19, 2024
1 parent d8e24a4 commit ade7a9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy_function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ on:
push:
branches:
- "main"
- feature/pdf-cloud-function
- report-python-cloud-run

env:
PROJECT_ID: dgds-i1000482-002
Expand Down Expand Up @@ -104,6 +104,10 @@ jobs:
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.REPOSITORY }}/${{ env.SERVICE }}:${{ github.sha }}
env_vars: |-
OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE }}
AZURE_OPENAI_API_KEY=${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_OPENAI_DEPLOYMENT_NAME=${{ secrets.AZURE_OPENAI_DEPLOYMENT_NAME }}
# If required, use the Cloud Run url output in later steps
- name: Show Output
Expand Down

0 comments on commit ade7a9b

Please sign in to comment.