DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to trigger a deploy or mirror after each successful push with Enroute

Use a post-receive hook to start CI, deploy code or mirror a repo after a push lands.

Short answer: Read the post-receive section in docs/reference/hooks.md for the payload it receives; then write a post-receive handler in your app that starts your CI run, deploy script or mirror job; enable the post-receive hook following the setup in docs/README.md. All steps.

Who it is forA developer who wants every successful push to kick off a build, a deploy or a copy to another repository.

The problemWiring Git pushes to CI or deployment often means polling or extra services that have to be kept in sync.

The outcomeA post-receive handler that runs your chosen action each time a push succeeds.

What you need first

  • Linux or macOS on Apple silicon, or Docker to run the published image
  • git installed on your machine
  • A terminal and, for hooks, a language you can write a small server in

Steps

  1. Read the post-receive section in docs/reference/hooks.md for the payload it receives.
  2. Write a post-receive handler in your app that starts your CI run, deploy script or mirror job.
  3. Enable the post-receive hook following the setup in docs/README.md. (inferred, check the README)
  4. Push a commit with git push http://127.0.0.1:8080/hello.git main and check that your action ran. (inferred, check the README)

Prompt for your agent

In the enroute-sh/enroute repository, read docs/reference/hooks.md and write a post-receive handler in <app-dir> that starts a deploy script for <repo-name>. Expected output: the handler runs after a successful push. Verify by pushing a commit to main and checking the deploy script log.

Caveat. The README lists post-receive as a hook for running CI, deploys or mirroring, but it does not describe the deploy or mirror tooling, so you supply that yourself.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for enroute-sh/enroute and "Trigger a deploy or mirror after each successful push"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer