-
Notifications
You must be signed in to change notification settings - Fork 12
Integrate GitHub Webhook
Naomichi Yamakita edited this page Oct 30, 2024
·
4 revisions
By using GitHub's webhook feature, you can automatically deploy any service triggered by a push.
-
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
- Payload URL:
-
Register the value set in GitHub's Secret into
config/settings.local.yml
.
github:
secret_key: ***
-
Add
auto_deploy
parameter todeploy.yml
. -
Finally, restart genova to enable automatic deployment.
docker compose restart