Redeploy on every Docker Hub push, without CI scripts

Use case · Updated on 12 October 2026

The problem

CI builds and pushes the image, and then someone still has to get it onto the server: an SSH step in the pipeline with a private key stored in CI, a script that pulls and recreates containers, or a watcher that polls the registry. Each test environment needs its own variant, and the key in CI can do far more than restart one service.

How it works in Enver

Enver gives a Docker Hub registry one webhook URL. After every push, Enver restarts – pulls and recreates – every running service in your account that uses the pushed repository and tag, in whichever environment it runs.

Set it up

  1. Under Registries, add your Docker Hub registry with a username and access token.
  2. Click Set up Docker Hub webhook and copy the URL.
  3. On Docker Hub, open the repository → Webhooks and paste the URL.
  4. Run the services that should follow a branch on that branch’s tag, e.g. develop in dev and main in staging.
  5. Push from CI as usual and watch the environment restart.

Details are in the guide. Enver is free for up to 2 environments and 10 services – try it with your next push.

Questions

Which registries support the webhook?

Docker Hub. With other registries such as GHCR, GitLab or Harbor, Enver deploys the images too, and you switch tags in the browser or restart a service to pull a new build of the same tag.

Are stopped services redeployed too?

No. Only running services that use the pushed repository and tag are restarted; a stopped service stays stopped.

Does it work on Kubernetes environments?

Yes. A restart rolls the service’s pods, one by one when it has several replicas.