Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 222ab75

Browse files
authored
Merge branch 'qa' into dev
2 parents b0eebad + b36f687 commit 222ab75

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.circleci/config.yml

+15
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ jobs:
6161
APPNAME: "micro-frontends-taas-admin-app"
6262
steps: *builddeploy_steps
6363

64+
"build-qa":
65+
<<: *defaults
66+
environment:
67+
DEPLOY_ENV: "QA"
68+
LOGICAL_ENV: "qa"
69+
APPNAME: "micro-frontends-taas-admin-app"
70+
steps: *builddeploy_steps
71+
6472
"build-prod":
6573
<<: *defaults
6674
environment:
@@ -81,6 +89,13 @@ workflows:
8189
only:
8290
- dev
8391

92+
- "build-qa":
93+
context: org-global
94+
filters:
95+
branches:
96+
only:
97+
- qa
98+
8499
# Production builds are exectuted only on tagged commits to the
85100
# master branch.
86101
- "build-prod":

config/index.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
/* global process */
22

33
module.exports = (() => {
4-
const appEnv = process.env.APPENV === "prod" ? "prod" : "dev";
5-
return require(`./${appEnv}`);
4+
const appEnv = process.env.APPENV || "dev";
5+
6+
console.log(`APPENV: "${appEnv}"`);
7+
8+
// for security reason don't let to require any arbitrary file defined in process.env
9+
if (["prod", "dev", "qa"].indexOf(appEnv) < 0) {
10+
return require("./dev");
11+
}
12+
13+
return require("./" + appEnv);
614
})();
15+

config/qa.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
API: {
3+
V3: "https://api.topcoder-qa.com/v3",
4+
V5: "https://api.topcoder-qa.com/v5",
5+
},
6+
PLATFORM_WEBSITE_URL: "https://platform.topcoder-qa.com",
7+
TOPCODER_WEBSITE_URL: "https://www.topcoder-qa.com",
8+
};

0 commit comments

Comments
 (0)