Skip to content

Commit

Permalink
change default-config values for new staging develop env (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkasl authored May 3, 2021
1 parent ff2a75d commit 57055f9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,17 @@ const config = {
corsOriginUrl: 'https://scp.biomage.net',
};

if (config.clusterEnv === 'staging') {

// We are in permanent develop staging environment
if (config.clusterEnv === 'staging' && config.sandboxId === 'default') {
config.workerInstanceConfigUrl = 'https://raw.githubusercontent.com/biomage-ltd/iac/master/releases/staging/worker.yaml';
config.pipelineInstanceConfigUrl = 'https://raw.githubusercontent.com/biomage-ltd/iac/master/releases/staging/pipeline.yaml';
config.cachingEnabled = false;
config.corsOriginUrl = 'https://ui-default.scp-staging.biomage.net';
}

// We are in user staging environments
if (config.clusterEnv === 'staging' && config.sandboxId !== 'default') {
config.workerInstanceConfigUrl = `https://raw.githubusercontent.com/biomage-ltd/iac/master/releases/staging/${config.sandboxId}.yaml`;
config.pipelineInstanceConfigUrl = `https://raw.githubusercontent.com/biomage-ltd/iac/master/releases/staging/${config.sandboxId}.yaml`;
config.cachingEnabled = false;
Expand All @@ -86,8 +96,6 @@ if (config.clusterEnv === 'development') {
s3ForcePathStyle: true,
});

config.pipelineInstanceConfigUrl = 'https://raw.githubusercontent.com/biomage-ltd/iac/master/releases/production/pipeline.yaml';

config.corsOriginUrl = 'http://localhost:5000';
}

Expand Down

0 comments on commit 57055f9

Please sign in to comment.