Skip to content

Refactor review/master deploy logic out of CI file into a single common script

Chad Woolley requested to merge 8302-refactor-deploy-logic-into-script into master

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 of review or production.
  • 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 from review-prep-bucket, review, review-stop, deploy-staging, and deploy jobs.

Related issues

Relates #8302 (closed)

Edited by Chad Woolley

Merge request reports