Add deployment scripts and webhook configuration
This commit is contained in:
18
deployment/hooks.json
Normal file
18
deployment/hooks.json
Normal file
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"id": "discord-bot-deploy",
|
||||
"execute-command": "/usr/local/bin/discord_bot_deploy.sh",
|
||||
"command-working-directory": "/root/code/discordBot",
|
||||
"response-message": "Deploying Discord bot...",
|
||||
"trigger-rule": {
|
||||
"match": {
|
||||
"type": "payload-hash-sha256",
|
||||
"secret": "CHANGE_THIS_SECRET_KEY",
|
||||
"parameter": {
|
||||
"source": "header",
|
||||
"name": "X-Gitea-Signature"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user