This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +35
-3
lines changed
3 files changed +35
-3
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-taas-admin-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-taas-admin-app"
68
+ steps : *builddeploy_steps
69
+
62
70
" build-prod " :
63
71
<< : *defaults
64
72
environment :
@@ -79,6 +87,13 @@ workflows:
79
87
only :
80
88
- dev
81
89
90
+ - " build-qa " :
91
+ context : org-global
92
+ filters :
93
+ branches :
94
+ only :
95
+ - qa
96
+
82
97
# Production builds are exectuted only on tagged commits to the
83
98
# master branch.
84
99
- " 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 } ` ) ;
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 ) ;
6
14
} ) ( ) ;
15
+
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
+ PLATFORM_WEBSITE_URL : "https://platform.topcoder-qa.com" ,
7
+ TOPCODER_WEBSITE_URL : "https://www.topcoder-qa.com" ,
8
+ } ;
You can’t perform that action at this time.
0 commit comments