@@ -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
@@ -191,6 +219,13 @@ workflows:
191
219
only :
192
220
- develop
193
221
- notifications-analytics
222
+ # This is beta env for production soft releases
223
+ - " build-prod-staging " :
224
+ context : org-global
225
+ filters :
226
+ branches :
227
+ only :
228
+ - staging-env-setup
194
229
# Production builds are exectuted
195
230
# when PR is merged to the master
196
231
# Don't change anything in this configuration
0 commit comments