On first launch, test for and register GitHub and DockerHub webhooks.
To do this I'll need:
- A way to opt in; most likely a variable like
HEATLAMP_REGISTER_HOOKS.
- A list of the repositories and image names to register. Some of these I can infer (
HEATLAMP_ANSIBLE_REPO for one) but the DockerHub images will need to be explicitly specified.
- GitHub credentials to use.
- A way to specify the externally accessible hostname and port that can receive the hook.
- Idempotence. Restarting the service shouldn't register a redundant hook, it should just verify that the hooks are registered.
- Verification of hook presence on the status page, why not.
On first launch, test for and register GitHub and DockerHub webhooks.
To do this I'll need:
HEATLAMP_REGISTER_HOOKS.HEATLAMP_ANSIBLE_REPOfor one) but the DockerHub images will need to be explicitly specified.