Post-merge pipeline step
Problem to solve
We'd like to use review apps for merge-requests only. Once a merge request has been merged, we'd like to remove the review app as it is no longer necessary. There is currently no way to add a hook to run some stage after a branch has been merged.
Intended users
Developers
Further details
Benefits include reducing wasting resources through auto-shutdown of review apps when they are no longer needed.
Proposal
Example journey:
- Merge request is created on a branch
- build step succeeds
- the branch code is deployed to a review app (with
only: -merge_requestsset on this stage) - The merge request is reviewed, approved, and merged
- Upon merge, a
shutown review appstage is auto-run
Permissions and Security
Existing permissions