Skip to content

Commit 57847ba

Browse files
authored
Merge pull request #4362 from topcoder-platform/develop
Bug-fixes : Marathon Leaderboard and build config fix
2 parents 1684fae + d56f801 commit 57847ba

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.circleci/config.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,35 @@ jobs:
119119
source awsenvconf
120120
source buildenvvar
121121
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
122-
122+
123+
# Build & Deploy against prod api backend
124+
"build-prod-staging":
125+
<<: *defaults
126+
steps:
127+
# Initialization.
128+
- checkout
129+
- setup_remote_docker
130+
- run: *install_dependency
131+
- run: *install_deploysuite
132+
# Restoration of node_modules from cache.
133+
- restore_cache: *restore_cache_settings_for_build
134+
- run:
135+
name: "configuring environment"
136+
command: |
137+
./awsconfiguration.sh PROD
138+
./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar
139+
# Build of Docker image.
140+
- run: *build_docker_image
141+
# Caching node modules.
142+
- save_cache: *save_cache_settings
143+
# Deployment.
144+
- deploy:
145+
name: Running MasterScript
146+
command: |
147+
source awsenvconf
148+
source buildenvvar
149+
./master_deploy.sh -d ECS -e PROD -t latest -s staging_communityapp_taskvar, -i communityapp
150+
123151
# Build & Deploy against production backend
124152
"build-prod":
125153
<<: *defaults
@@ -189,6 +217,13 @@ workflows:
189217
branches:
190218
only:
191219
- develop
220+
# This is stage env for production QA releases
221+
- "build-prod-staging":
222+
context : org-global
223+
filters:
224+
branches:
225+
only:
226+
- staging-env-setup
192227
# Production builds are exectuted
193228
# when PR is merged to the master
194229
# Don't change anything in this configuration

deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ make_task_def(){
8585
NODE_CONFIG_ENV=production
8686
elif [ "$ENV" = "PRODBETA" ]; then
8787
NODE_CONFIG_ENV=production
88+
elif [ "$ENV" = "PRODSTAGING" ]; then
89+
NODE_CONFIG_ENV=production
8890
elif [ "$ENV" = "DEV" ]; then
8991
NODE_CONFIG_ENV=development
9092
elif [ "$ENV" = "TEST" ]; then

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"tc-accounts": "git+https://github.com/appirio-tech/accounts-app.git#dev",
135135
"tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6.3",
136136
"tc-ui": "^1.0.12",
137-
"topcoder-react-lib": "v0.17.1",
137+
"topcoder-react-lib": "0.17.2",
138138
"topcoder-react-ui-kit": "^1.0.11",
139139
"topcoder-react-utils": "0.7.8",
140140
"turndown": "^4.0.2",

0 commit comments

Comments
 (0)