Skip to content

Automatically remove outdated auto-deploy branches

Yorick Peterse requested to merge cleanup-auto-deploy-branches into master

This adds ReleaseTools::AutoDeploy::Cleanup, which can be used to automatically remove auto-deploy branches older than seven days. These branches are removed on the public projects, the security mirrors, and on dev.gitlab.org.

See gitlab-com/gl-infra/delivery#270 (closed) for more information.

TOD

  • Run it on the projects to test things
    • This works, and all currently outdated branches have been removed
  • Add unit tests
  • Add Rake task to run the code
  • Set up CI job to run the Rake task
  • Set up CI schedule to run this job once a day
Edited by Yorick Peterse

Merge request reports