File tree Expand file tree Collapse file tree 4 files changed +36
-4
lines changed Expand file tree Collapse file tree 4 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ install_dependency: &install_dependency
11
11
install_deploysuite : &install_deploysuite
12
12
name : Installation of install_deploysuite.
13
13
command : |
14
- git clone --branch v1.4.2 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
14
+ git clone --branch v1.4.14 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
15
15
cp ./../buildscript/master_deploy.sh .
16
16
cp ./../buildscript/buildenv.sh .
17
17
cp ./../buildscript/awsconfiguration.sh .
59
59
APPNAME : " micro-frontends-forums-app"
60
60
steps : *builddeploy_steps
61
61
62
+ " build-qa " :
63
+ << : *defaults
64
+ environment :
65
+ DEPLOY_ENV : " QA"
66
+ LOGICAL_ENV : " qa"
67
+ APPNAME : " micro-frontends-forums-app"
68
+ steps : *builddeploy_steps
69
+
62
70
" build-prod " :
63
71
<< : *defaults
64
72
environment :
@@ -79,6 +87,14 @@ workflows:
79
87
only :
80
88
- develop
81
89
90
+ # Development builds are executed on "develop" branch only.
91
+ - " build-qa " :
92
+ context : org-global
93
+ filters :
94
+ branches :
95
+ only :
96
+ - qa
97
+
82
98
# Production builds are exectuted only on tagged commits to the
83
99
# master branch.
84
100
- " build-prod " :
Original file line number Diff line number Diff line change 1
1
/* global process */
2
2
3
3
module . exports = ( ( ) => {
4
- const appEnv = process . env . APPENV === "prod" ? "prod" : "dev" ;
5
- return require ( `./${ appEnv } ` ) ;
6
- } ) ( ) ;
4
+ const env = process . env . APPENV || "dev" ;
5
+
6
+ console . log ( `APPENV: "${ env } "` ) ;
7
+
8
+ // for security reason don't let to require any arbitrary file defined in process.env
9
+ if ( [ "prod" , "dev" , "qa" ] . indexOf ( env ) < 0 ) {
10
+ return require ( "./dev" ) ;
11
+ }
12
+
13
+ return require ( "./" + env ) ;
14
+ } ) ( ) ;
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ API : {
3
+ V3 : "https://api.topcoder-qa.com/v3" ,
4
+ V5 : "https://api.topcoder-qa.com/v5" ,
5
+ } ,
6
+ VANILLA_EMBED_JS : "https://vanilla.topcoder-qa.com/js/embed.js" ,
7
+ } ;
Original file line number Diff line number Diff line change 4
4
"start" : " node server.js" ,
5
5
"dev" : " cross-env APPMODE=development webpack-dev-server --port 8602 --host 0.0.0.0" ,
6
6
"dev-https" : " cross-env APPMODE=development webpack-dev-server --https --port 8602 --host 0.0.0.0" ,
7
+ "qa" : " cross-env APPMODE=development webpack-dev-server --port 8602 --host 0.0.0.0" ,
7
8
"build" : " webpack --mode=${APPMODE:-production} --env.config=${APPENV:-prod}" ,
8
9
"analyze" : " webpack --mode=production --env.analyze=true" ,
9
10
"lint" : " eslint ./src --ext .js,.jsx" ,
You can’t perform that action at this time.
0 commit comments