Skip to content

feat: add workflow to decommission deploy project

What

This MR adds the support for deprovisioning entire Runway services using the deploy project's CI workflow.

Key changes

  1. Add new RUNWAY_DEPLOYMENT_STRATEGY: destroy
  2. Add Destroy and Plan For Destroy jobs on deployment-project
  3. Add Trigger runway destroy staging, Trigger runway destroy production and Trigger destroy dry-run Deployment trigger jobs for service project
  4. Trigger the destroy workflow using DESTROY_RUNWAY_WORKLOAD CI variable on the service project

DESTROY_RUNWAY_WORKLOAD can either be:

  • runway_service_id: this is useful for service projects with multiple deployments
  • "EVERYTHING": use this is your service project has only 1 deployment or you wish to destroy all deployments in the service project.

Note that the DESTROY_RUNWAY_WORKLOAD is added as an option for service owners to manually deprovision their project. The follow-up to this effort is to trigger the destroy pipelines from the runway provisioner's CI pipeline.

Why

team#111 (closed)

Edited by Sylvester Chin

Merge request reports

Loading