How can i set env_variables (of the google app engine app.yaml) using the variables set in the repository settings? For exemple, i set the variable: AUTH_JWT_SECRET
Reference for app.yaml: https://cloud.google.com/appengine/docs/standard/python/config/appref
My pipe:
image: node:10.15.3
pipelines:
branches:
master:
- step:
name: "Build"
caches:
- node
script:
- yarn
- yarn build
- step:
name: "Deploy to App Engine"
deployment: production
script:
- pipe: atlassian/google-app-engine-deploy:0.5.0
variables:
VERSION: "production"
PROMOTE: 'true'
STOP_PREVIOUS_VERSION: 'true'
KEY_FILE: $GPC_KEY_FILE
PROJECT: $GCP_PROJECT
I resolved by doing this on the script section just before -pipe. But i think there should be a better way, because i will have to do this for every branch of deployment...
echo "beta_settings:
cloud_sql_instances: ${CLOUD_SQL_INSTANCES}
env_variables:
ENVIRONMENT: ${ENV}
EXPRESS_IP: 0.0.0.0
DB_HOST: ${DB_HOST}
DB_PORT: ''
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
" > secrets.yaml
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.