Commit 69fc9d0e authored by Sacha Brants's avatar Sacha Brants
Browse files

Merge branch 'slb/vm/fix-url-basepath' into 'master'

ci: allow base path for Google Cloud deployments to be set via an environment variable

See merge request !143
parents 7824d871 28d87c75
Pipeline #51157 passed with stages
in 10 minutes and 28 seconds
......@@ -82,6 +82,9 @@ export class ConfigGoogle extends Config {
ConfigGoogle.SERVICE_CLOUD_PROJECT = process.env.SERVICE_CLOUD_PROJECT;
Config.checkRequiredConfig(ConfigGoogle.SERVICE_CLOUD_PROJECT, 'SERVICE_CLOUD_PROJECT');
// set the base service path
ConfigGoogle.API_BASE_URL_PATH = process.env.API_BASE_URL_PATH || ConfigGoogle.API_BASE_URL_PATH;
// load service identity from credential file (for local dev - on cloud use work-load identities)
ConfigGoogle.SERVICE_IDENTITY_KEY_FILENAME = process.env.SERVICE_IDENTITY_KEY_FILENAME;
if (ConfigGoogle.SERVICE_IDENTITY_KEY_FILENAME) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment