Skip to content

Commit 19e55fc

Browse files
Merge pull request #5559 from topcoder-platform/fix-circleci-deployment
Fix circleci deployment
2 parents 877855e + c738299 commit 19e55fc

File tree

1 file changed

+29
-23
lines changed

1 file changed

+29
-23
lines changed

.circleci/config.yml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ build_docker_image: &build_docker_image
4747
./build.sh
4848
jobs:
4949
# Build & Deploy against development backend
50-
deployDev:
50+
"build-dev":
5151
<<: *defaults
5252
steps:
5353
# Initialization.
@@ -73,8 +73,9 @@ jobs:
7373
source awsenvconf
7474
source buildenvvar
7575
./master_deploy.sh -d ECS -e DEV -t latest -s dev_communityapp_taskvar -i communityapp
76+
7677
# Build & Deploy against testing backend
77-
deployTest:
78+
"build-test":
7879
<<: *defaults
7980
steps:
8081
# Initialization.
@@ -100,8 +101,9 @@ jobs:
100101
source awsenvconf
101102
source buildenvvar
102103
./master_deploy.sh -d ECS -e DEV -t latest -s test_communityapp_taskvar -i communityapp
104+
103105
# Build & Deploy against testing backend
104-
deployQA:
106+
"build-qa":
105107
<<: *defaults
106108
steps:
107109
# Initialization.
@@ -127,8 +129,9 @@ jobs:
127129
source awsenvconf
128130
source buildenvvar
129131
./master_deploy.sh -d ECS -e DEV -t latest -s qa_communityapp_taskvar -i communityapp
132+
130133
# Build & Deploy against prod api backend
131-
deployBeta:
134+
"build-prod-beta":
132135
<<: *defaults
133136
steps:
134137
# Initialization.
@@ -156,7 +159,7 @@ jobs:
156159
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
157160
158161
# Build & Deploy against prod api backend
159-
deployStag:
162+
"build-prod-staging":
160163
<<: *defaults
161164
steps:
162165
# Initialization.
@@ -189,7 +192,7 @@ jobs:
189192
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
190193
191194
# Build & Deploy against production backend
192-
deployProd:
195+
"build-prod":
193196
<<: *defaults
194197
steps:
195198
# Initialization.
@@ -220,6 +223,8 @@ jobs:
220223
--header "Circle-Token: ${CIRCLE_TOKEN}" \
221224
--header 'content-type: application/json' \
222225
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
226+
227+
# Automated Smoke Testing against Staging
223228
Smoke-Testing-On-Staging:
224229
<<: *defaults
225230
steps:
@@ -244,6 +249,8 @@ jobs:
244249
./automated-smoke-test/smoketest.sh automation-config-staging.json prod
245250
- store_artifacts:
246251
path: /automated-smoke-test/test-results
252+
253+
# Automated Smoke Testing against Production
247254
Smoke-Testing-On-Production:
248255
<<: *defaults
249256
steps:
@@ -266,6 +273,7 @@ jobs:
266273
source awsenvconf
267274
source buildenvvar
268275
./automated-smoke-test/smoketest.sh automation-config-prod.json prod
276+
269277
# Test job for the cases when we do not need deployment. It just rapidly
270278
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
271279
# Jest unit-tests).
@@ -327,49 +335,49 @@ workflows:
327335
when: << pipeline.parameters.run_basedeployment >>
328336
jobs:
329337
# Development builds are executed on "new-develop" branch only.
330-
- deployDev:
338+
- "build-dev":
331339
context : org-global
332340
filters:
333341
branches:
334342
only:
335-
- free
343+
- develop
336344
# This is alternate dev env for parallel testing
337-
- deployTest:
345+
- "build-test":
338346
context : org-global
339347
filters:
340348
branches:
341349
only:
342350
- free
343351
# This is alternate dev env for parallel testing
344-
- deployQA:
352+
- "build-qa":
345353
context : org-global
346354
filters:
347355
branches:
348356
only:
349357
- free
350358
# This is beta env for production soft releases
351-
- deployBeta:
359+
- "build-prod-beta":
352360
context : org-global
353361
filters:
354362
branches:
355363
only:
356364
- thrive-bug-fixes
357365
# This is stage env for production QA releases
358-
- deployStag:
366+
- "build-prod-staging":
359367
context : org-global
360-
filters:
368+
filters: &filters-staging
361369
branches:
362370
only:
363-
- free
371+
- develop
364372
# Production builds are exectuted
365373
# when PR is merged to the master
366374
# Don't change anything in this configuration
367375
# That might trigger wrong branch to be
368376
# deployed on the production
369377
# master branch.
370-
- deployProd:
378+
- "build-prod":
371379
context : org-global
372-
filters:
380+
filters: &filters-prod
373381
branches:
374382
only:
375383
- master
@@ -382,7 +390,9 @@ workflows:
382390
- develop
383391

384392
Smoke Testing:
385-
when: << pipeline.parameters.run_smoketesting >>
393+
when:
394+
and:
395+
- << pipeline.parameters.run_smoketesting >>
386396
jobs:
387397
- Hold [Smoke-Testing]:
388398
type: approval
@@ -391,17 +401,13 @@ workflows:
391401
requires:
392402
- Hold [Smoke-Testing]
393403
filters:
394-
branches:
395-
only:
396-
- develop
404+
<<: *filters-staging
397405
- Smoke-Testing-On-Production:
398406
context : org-global
399407
requires:
400408
- Hold [Smoke-Testing]
401409
filters:
402-
branches:
403-
only:
404-
- master
410+
<<: *filters-prod
405411

406412
Performance Testing:
407413
when: << pipeline.parameters.run_performancetesting >>

0 commit comments

Comments
 (0)