Cap previews at five and reap them nightly #307
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#306 Deploy a preview per PR and remove it on close
amaurycoudr/chess-project
Reference
amaurycoudr/chess-project#307
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#303
What to build
Previews can never crowd out production: at most five run at once, and nothing leaks when a close event is missed.
Before deploying a new preview while five run, the preview workflow removes the one deployed longest ago, read from the deploy-time label. A redeploy of an existing preview does not count as a sixth. A nightly scheduled workflow lists the
chess-pr-*stacks, removes those whose PR is no longer open, then prunes images no container uses.Seam: Workflow post-conditions
Acceptance criteria
chess-pr-*stacks remainmentioned in issue #303
mentioned in issue #306
marked this issue as related to #303
marked this issue as related to #306
mentioned in commit
1ece286732