Skip to content

Integrate GitHub Webhook

Naomichi Yamakita edited this page Jun 18, 2024 · 3 revisions

By using GitHub's webhook feature, you can automatically deploy any service triggered by a push.

  1. Please add Webhook on GitHub. Open Settings -> Webhooks in repository page on GitHub.

    • Payload URL: https://{YOUR_HOST}/api/v2/github/push
    • Content type: application/json
    • Secret: Specify the authentication key to allow requests from GitHub. The key can be set to any alphanumeric value.
    • Which events would you like to trigger this webhook?: Just the push event.
    • Active: Checked
  2. Register the value set in GitHub's Secret into config/settings.local.yml.

github:
  secret_key: ***
  1. Add auto_deploy parameter to deploy.yml.

  2. Finally, restart genova to enable automatic deployment.

docker-compose restart
Clone this wiki locally