Project id and app.yaml

87 views
Skip to first unread message

System Mirror Admin

unread,
Feb 24, 2021, 4:16:48 PM2/24/21
to google-appengine-go
Is it possible to substitute the current project id into the app.yaml file when deploying to Google Cloud?

For example

#app.yaml
runtime: go112

env_variables:
  PROJECT_ID: {the current project id}

chaom...@insightech.com

unread,
Feb 24, 2021, 5:17:15 PM2/24/21
to google-appengine-go
Maybe try Cloud Build https://cloud.google.com/build/docs/configuring-builds/substitute-variable-values

I have an article to talk about how to automate the deployment with Cloud Build for different environments here: https://chaoming-li.medium.com/automate-deployments-to-multiple-app-engine-environments-with-cloud-build-and-github-94b44f4de394
Reply all
Reply to author
Forward
0 new messages