FerryDocs

Deploy with a deploy hook

With a deploy hook, your CI deploys one service after the tests pass.

Edit on GitHub
git pushCIruns the testsDeploy hooka secret URLNew deployanswer: 202

You push a commit. Your CI runs the tests.

1 / 4

A is a secret URL that deploys one service when you call it. Use it from your , or from each tool that can send an HTTP request. The server needs no webhook secret for it.

Call the hook

Terminal
$ 

The rules

  • POST and GET work. The answer is 202, with a summary of the deploy in the queue ( deploy_hook).
  • The hook deploys the source in the settings of the service: the head of its , its , or its last upload. It cannot choose a .
  • The URL is the secret. Store it as a secret of your CI.
  • ferry deploy-hook rotate api replaces the key. The old URL stops immediately.
  • The printed URL starts with the server URL of your CLI. From outside, call it on your public dashboard host.

On this page