[infra/cleanup] Convert to use Cloud Run Job
@augustjk is already working on this.
Since May 13, 2022.
- Dominant language
- TypeScript
- Stars
- 142
- Forks
- 230
- PR merge metrics
- No merged PRs in 30d
Description
The existing implementation of the clean up added here https://github.com/lit/lit.dev/pull/831 utilizes building and running the script within a cloud build hook scheduled to run periodically.
The more appropriate thing would be to utilize [Cloud Run Jobs](https://cloud.google.com/run/docs/create-jobs).
We should create an image with the cleanup script built and ready to run, and just trigger that as a Cloud Run Job on a schedule.
It would be ideal of this cleanup image is built with cloudbuild and uploaded to GCR only when its source code changes in the main branch. Alternatively the cleanup code could live in a designated branch for the cloudbuild trigger.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.