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.3pipelines:branches:master:- step:name: "Build"caches:- nodescript:- yarn- yarn build- step:name: "Deploy to App Engine"deployment: productionscript:- pipe: atlassian/google-app-engine-deploy:0.5.0variables:VERSION: "production"PROMOTE: 'true'STOP_PREVIOUS_VERSION: 'true'KEY_FILE: $GPC_KEY_FILEPROJECT: $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.0DB_HOST: ${DB_HOST}DB_PORT: ''DB_USERNAME: ${DB_USERNAME}DB_PASSWORD: ${DB_PASSWORD}DB_NAME: ${DB_NAME}" > secrets.yaml
It looks like you're new here. Sign in or register to get started.