Refactor review/master deploy logic out of CI file into a single common script
What does this MR do?
Refactor review/master deploy logic out of CI file into a single common script.
- Introduce
DEPLOY_TYPEenv var with value ofrevieworproduction. - Introduce
DEPLOY_CLEANUP_OLD_DELETED_FILESenv var which controls whether rsync deletion flag is used. - Introduce
$DEPLOY_DELETE_APPenv var to be used when stopping/deleting review apps. - Introduce
scripts/deployscript which includes logic from.common-gcp-setup,.review-rsync, and.deploy-rsyncwith appropriate commands executed based on above env vars. - Use
scripts/deployscript fromreview-prep-bucket,review,review-stop,deploy-staging, anddeployjobs.
Related issues
Relates #8302 (closed)
Edited by Chad Woolley