You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
display_checkpoint_message "Build this GIT version: $project_git_sha : $commit_message"
160
-
sleep 1
161
-
fi
162
-
163
153
## Build the App Image and save it to '.docker/binary' to be used on your production servers.
164
154
if [[ ${only_building_app_image_for_production}=='true' ]];then
165
-
display_checkpoint_message "Building Docker image for the app... ('skip_building_app_image' is set to false) (50%)"
166
-
load_app_docker_image
167
-
save_app_docker_image
155
+
if [[ ${skip_building_app_image}!='true' ]];then
156
+
display_checkpoint_message "Building Docker image for the app... ('only_building_app_image_for_production' is set to true) (50%)"
157
+
load_app_docker_image
158
+
save_app_docker_image
159
+
display_checkpoint_message "Saved as a Docker image binary for the app... ('only_building_app_image_for_production' is set to true) (60%)"
160
+
else
161
+
display_checkpoint_message "Skip building image (skip_building_app_image : ${skip_building_app_image}). We will use the previous images on the remote server... (50%)"
162
+
fi
168
163
# Call remote distribution only when all 4 REMOTE_* envs are provided and lists are non-empty
169
164
need_remote=false
170
165
if [[ -n"${remote_deployment_runner_path}"&&-n"${remote_deployment_ip_address_list}"&&-n"${remote_deployment_port_number_list}"&&-n"${remote_deployment_ssh_private_key_local_path_with_file}" ]];then
@@ -177,16 +172,33 @@ _main() {
177
172
fi
178
173
179
174
if [[ ${need_remote}==true ]];then
180
-
remote_deployment_connect_and_save_binary
175
+
if [[ ${skip_building_app_image}!='true' ]];then
176
+
remote_deployment_connect_and_save_binary
177
+
else
178
+
display_checkpoint_message "Skip saving binary on the remote server (skip_building_app_image : ${skip_building_app_image}). We will use the previous images on the remote server... (60%)"
179
+
fi
181
180
if [[ -n"${remote_deployment_failure_strategy}" ]];then
182
181
remote_deployment_run_on_remotes
183
182
fi
184
183
display_checkpoint_message "[NOTICE] Deployed the App image for all Production servers... Check the detailed logs. (100%)"&&exit 0
185
184
else
186
185
display_checkpoint_message "[NOTICE] App image binary saved to ./.docker/binary/${project_name}... (100%)"&&exit 0
187
186
fi
187
+
188
+
exit 0
188
189
fi
189
190
191
+
display_checkpoint_message "Deployment target between Blue and Green has been decided... (3%)"
0 commit comments