lit / lit/lit.dev

[infra/cleanup] Convert to use Cloud Run Job

Open
#842 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.