@@ -119,7 +119,35 @@ jobs:
119
119
source awsenvconf
120
120
source buildenvvar
121
121
./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
+
123
151
# Build & Deploy against production backend
124
152
" build-prod " :
125
153
<< : *defaults
@@ -189,7 +217,13 @@ workflows:
189
217
branches :
190
218
only :
191
219
- develop
192
- - config-hotfix
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
193
227
# Production builds are exectuted
194
228
# when PR is merged to the master
195
229
# Don't change anything in this configuration
0 commit comments