Skip to content

Commit

Permalink
Deployment Env Keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailocampo committed Jun 20, 2024
1 parent a53d788 commit 1600833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ jobs:
credentials_json: ${{ secrets.PRODUCTION_CREDENTIALS_JSON }}

# Dynamically Update app.yaml
- name: Update app.yaml
- name: Update app.yaml with env variables
run: |
echo "" >> app.yaml
echo "env_variables:" >> app.yaml
echo " ENV_TYPE: '${{ env.ENV_TYPE }}'" >> app.yaml
echo " PROJECT_ID: '${{ env.PROJECT_ID }}'" >> app.yaml
echo " GOOGLE_API_KEY: '${{ secrets.GOOGLE_API_KEY }}'" >> app.yaml
echo " PYTHONPATH: app/" >> app.yaml
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
Expand Down
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
runtime: python310
entrypoint: fastapi run app/main.py --port 8000
entrypoint: fastapi run app/main.py --port $PORT
instance_class: F2
automatic_scaling:
min_instances: 1
Expand Down

0 comments on commit 1600833

Please sign in to comment.