Skip to content

ci(review): rewrite review app workflow with cleanup#492

Draft
jb-delafosse wants to merge 2 commits intomainfrom
ci/review-app-cleanup
Draft

ci(review): rewrite review app workflow with cleanup#492
jb-delafosse wants to merge 2 commits intomainfrom
ci/review-app-cleanup

Conversation

@jb-delafosse
Copy link
Collaborator

Summary

  • Rewrite review app workflow with label-based deployment
  • Add scheduled cleanup for expired and orphaned review apps

Replace the CleverCloud/clever-cloud-review-app action with direct
clever-tools CLI commands for more control over the deployment lifecycle.

Key changes:
- Trigger on `deploy-review` label instead of all PRs touching front/
- Use clever-tools CLI directly (create, env set, deploy, delete)
- Split into 3 jobs: deploy, cleanup-unlabeled, cleanup-closed
- Add deployment comments with timestamps for expiry tracking
- Remove front/ path filter so any PR can opt-in to review apps

no_jira
Add a cron-based workflow (every 30 min) with two cleanup jobs:

- cleanup-expired: checks deployment timestamps in PR comments and
 deletes apps older than 3 hours, then removes the deploy-review label
- cleanup-orphans: lists all review apps on Clever Cloud and deletes
 any whose corresponding PR is no longer open

no_jira
@jb-delafosse jb-delafosse marked this pull request as draft February 15, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant