{"id":37206031,"url":"https://github.com/qiyihuang/build-cleaner","last_synced_at":"2026-01-14T23:43:46.777Z","repository":{"id":41984826,"uuid":"477635372","full_name":"qiyihuang/build-cleaner","owner":"qiyihuang","description":"Google Cloud function for cleaning up Cloud Build artifact after deployment.","archived":true,"fork":false,"pushed_at":"2022-07-07T14:54:57.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T09:37:35.008Z","etag":null,"topics":["google-cloud-build","google-cloud-functions","google-cloud-storage"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qiyihuang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-04T09:38:40.000Z","updated_at":"2024-01-20T01:28:37.000Z","dependencies_parsed_at":"2022-07-12T21:33:07.793Z","dependency_job_id":null,"html_url":"https://github.com/qiyihuang/build-cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qiyihuang/build-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiyihuang%2Fbuild-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiyihuang%2Fbuild-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiyihuang%2Fbuild-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiyihuang%2Fbuild-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qiyihuang","download_url":"https://codeload.github.com/qiyihuang/build-cleaner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiyihuang%2Fbuild-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-cloud-build","google-cloud-functions","google-cloud-storage"],"created_at":"2026-01-14T23:43:46.194Z","updated_at":"2026-01-14T23:43:46.766Z","avatar_url":"https://github.com/qiyihuang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build Cleaner\n\nGoogle Cloud function for cleaning up Cloud Build artifact storage after successful deployment. Artifacts are only used during build/deployment. Cloud Build won't clean them up automatically and lifecycle setting in Cloud Storage won't let us delete the artifact immediately.\n\n## Deployment\n\n- Google Cloud Pub/Sub API enabled.\n\n- Create Pub/Sub topic \"cloud-builds\" if not existing.\n\n- Create a subscription that \"push\" message to the the function endpoint. Set acknowledge deadline to 260 seconds or higher due to the gap between build completion and deployment completion.\n\n- Grant the service worker build-cleaner uses the \"Cloud Functions Viewer\" and \"Storage Object Admin\" permissions.\n\n- The function requires ~20mb memory to run.\n\n- Add environment variables required (shown in .env.example) to the function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiyihuang%2Fbuild-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqiyihuang%2Fbuild-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiyihuang%2Fbuild-cleaner/lists"}