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_TYPE
env var with value ofreview
orproduction
. - Introduce
DEPLOY_CLEANUP_OLD_DELETED_FILES
env var which controls whether rsync deletion flag is used. - Introduce
$DEPLOY_DELETE_APP
env var to be used when stopping/deleting review apps. - Introduce
scripts/deploy
script which includes logic from.common-gcp-setup
,.review-rsync
, and.deploy-rsync
with appropriate commands executed based on above env vars. - Use
scripts/deploy
script fromreview-prep-bucket
,review
,review-stop
,deploy-staging
, anddeploy
jobs.
Related issues
Relates #8302 (closed)
Edited by Chad Woolley