@@ -48,45 +48,44 @@ build_docker_image: &build_docker_image
4848 ./build.sh
4949 no_output_timeout : 20m
5050
51- build_steps : &build_steps
52- # Initialization.
53- - checkout
54- - setup_remote_docker
55- - run : *install_dependency
56- - run : *install_deploysuite
57- # Restoration of node_modules from cache.
58- # - restore_cache: *restore_cache_settings_for_build
59- # Build of Docker image.
60- - run :
61- name : " configuring environment"
62- command : |
63- ./awsconfiguration.sh ${DEPLOY_ENV}
64- source awsenvconf
65- ./psvar-processor.sh -t appenv -p /config/${APPNAME}/buildvar
66- source buildvar_env
67- # ./buildenv.sh -e ${DEPLOY_ENV} -b dev_communityapp_buildvar,dev_communityapp_deployvar -l dev_communityapp_buildvar_ps
68- - run : *build_docker_image
69- # Caching node modules.
70- # - save_cache: *save_cache_settings
71- # Deployment.
72- - deploy :
73- name : Running MasterScript
74- command : |
75- source awsenvconf
76- # source buildenvvar
77- ./psvar-processor.sh -t appenv -p /config/${APPNAME}/deployvar
78- source deployvar_env
79- ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -j /config/${APPNAME}/appvar -i ${APPNAME} -p FARGATE
80- # ./master_deploy.sh -d ECS -e DEV -t latest -s dev_communityapp_taskvar -i communityapp -p FARGATE
81- if [ "${DEPLOY_ENV}" = "PROD" ];
82- then
83- # Executing plan
84- curl --request POST \
85- --url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
86- --header "Circle-Token: ${CIRCLE_TOKEN}" \
87- --header 'content-type: application/json' \
88- --data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
89- fi
51+ build_steps : &build_steps # Initialization.
52+ - checkout
53+ - setup_remote_docker
54+ - run : *install_dependency
55+ - run : *install_deploysuite
56+ # Restoration of node_modules from cache.
57+ # - restore_cache: *restore_cache_settings_for_build
58+ # Build of Docker image.
59+ - run :
60+ name : " configuring environment"
61+ command : |
62+ ./awsconfiguration.sh ${DEPLOY_ENV}
63+ source awsenvconf
64+ ./psvar-processor.sh -t appenv -p /config/${APPNAME}/buildvar
65+ source buildvar_env
66+ # ./buildenv.sh -e ${DEPLOY_ENV} -b dev_communityapp_buildvar,dev_communityapp_deployvar -l dev_communityapp_buildvar_ps
67+ - run : *build_docker_image
68+ # Caching node modules.
69+ # - save_cache: *save_cache_settings
70+ # Deployment.
71+ - deploy :
72+ name : Running MasterScript
73+ command : |
74+ source awsenvconf
75+ # source buildenvvar
76+ ./psvar-processor.sh -t appenv -p /config/${APPNAME}/deployvar
77+ source deployvar_env
78+ ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -j /config/${APPNAME}/appvar -i ${APPNAME} -p FARGATE
79+ # ./master_deploy.sh -d ECS -e DEV -t latest -s dev_communityapp_taskvar -i communityapp -p FARGATE
80+ if [ "${DEPLOY_ENV}" = "PROD" ];
81+ then
82+ # Executing plan
83+ curl --request POST \
84+ --url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
85+ --header "Circle-Token: ${CIRCLE_TOKEN}" \
86+ --header 'content-type: application/json' \
87+ --data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
88+ fi
9089
9190jobs :
9291 # Build & Deploy against development backend
9594 environment :
9695 DEPLOY_ENV : " DEV"
9796 LOGICAL_ENV : " dev"
98- APPNAME : " community-app"
97+ APPNAME : " community-app"
9998 steps : *build_steps
10099
101100 # Build & Deploy against production backend
@@ -107,7 +106,6 @@ jobs:
107106 APPNAME : " community-app"
108107 steps : *build_steps
109108
110-
111109 # Test job for the cases when we do not need deployment. It just rapidly
112110 # installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
113111 # Jest unit-tests).
@@ -123,7 +121,7 @@ jobs:
123121 command : git config --global url."https://git@".insteadOf git://
124122 - run :
125123 name : App npm install
126- command : npm install
124+ command : npm ci
127125 no_output_timeout : 20m
128126 - save_cache :
129127 key : test-node-modules-{{ checksum "package-lock.json" }}
@@ -181,8 +179,6 @@ workflows:
181179 branches :
182180 only :
183181 - develop
184- - v6
185- - PM-2479
186182
187183 - " build-prod " :
188184 context : org-global
0 commit comments