Push hooks
Polling every interval always works. For builds within seconds of a push:
- Expose the hooks Service:
hooks.baseURL: https://gitimage.example.comandhooks.ingress.enabled: true(or your own Ingress/Gateway to Servicegitimage-hooks:8080, path prefix/hooks/). - Copy the URL:
kubectl get gi myapp -o jsonpath='{.status.webhookURL}'. - Add it as a push webhook in GitHub, GitLab, Gitea or Forgejo (any content type, no secret).
The URL carries a random token (Secret <name>-gitimage-hook; delete it to rotate). A hook only
triggers a re-check of the ref: its payload is never trusted. Hooks for one repository wake every
GitImage in that namespace with the same repository URL.