{"id":18640259,"url":"https://github.com/dmage/git-build-watcher","last_synced_at":"2026-05-02T01:35:31.817Z","repository":{"id":146847269,"uuid":"310708520","full_name":"dmage/git-build-watcher","owner":"dmage","description":"Trigger a new OpenShift build when a new commit is available","archived":false,"fork":false,"pushed_at":"2020-11-12T21:23:57.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T15:38:46.942Z","etag":null,"topics":["builds","git","openshift","watcher"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-06T21:23:38.000Z","updated_at":"2020-11-12T21:23:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"785e3e52-a91d-4b46-9091-d095943ec771","html_url":"https://github.com/dmage/git-build-watcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmage/git-build-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmage%2Fgit-build-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmage%2Fgit-build-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmage%2Fgit-build-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmage%2Fgit-build-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmage","download_url":"https://codeload.github.com/dmage/git-build-watcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmage%2Fgit-build-watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32520156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"ssl_error","status_checked_at":"2026-05-02T01:12:54.261Z","response_time":64,"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":["builds","git","openshift","watcher"],"created_at":"2024-11-07T05:53:48.482Z","updated_at":"2026-05-02T01:35:31.800Z","avatar_url":"https://github.com/dmage.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watcher for OpenShift Builds that use Git sources\n\n`git-build-watcher` is a one-shot tool that initiates a new build for a\nBuildConfig when it detects that the latest Git commitish it not built.\n\nIt is useful in situations in which setting up a webhook is not feasible.\n\n## Usage\n\n    git-build-watcher [-n \u003cnamespace\u003e] \u003cbuildconfig\u003e\n\n## How it works?\n\nIt gets the Git repository URL and the Git reference name from the build\nconfig's `.spec.source.git`.\n\nThen it calls `git ls-remote` to get the current commitish for the Git\nreference and checks if the latest build has the same commitish in\n`.spec.revision.git.commit`.\n\nIf the build is not found or uses a different commit, this tool triggers a new\nbuild.\n\n## How to use it?\n\nThis repository contains manifests for a CronJob that runs `git-build-watcher`\nevery 5 minutes. You can create it for the BuildConfig `MY-BUILDCONFIG` in the\nnamespace `MY-NAMESPACE` using these commands:\n\n```console\n$ git clone https://github.com/dmage/git-build-watcher.git\n$ cd ./git-build-watcher\n$ mkdir ./my-deployment \u0026\u0026 cat \u003e./my-deployment/kustomization.yaml \u003c\u003cEND\napiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nnamespace: MY-NAMESPACE\nbases:\n- ./../manifests\nconfigMapGenerator:\n- name: git-build-watcher\n  literals:\n  - buildconfig=MY-BUILDCONFIG\nEND\n$ kubectl apply -k ./my-deployment/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmage%2Fgit-build-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmage%2Fgit-build-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmage%2Fgit-build-watcher/lists"}