docker
This commit is contained in:
31
deploy/hooks.json.example
Normal file
31
deploy/hooks.json.example
Normal file
@ -0,0 +1,31 @@
|
||||
[
|
||||
{
|
||||
"id": "jira-descours-deploy",
|
||||
"execute-command": "/config/deploy.sh",
|
||||
"command-working-directory": "/",
|
||||
"trigger-rule": {
|
||||
"and": [
|
||||
{
|
||||
"match": {
|
||||
"type": "value",
|
||||
"value": "refs/heads/main",
|
||||
"parameter": {
|
||||
"source": "payload",
|
||||
"name": "ref"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"type": "value",
|
||||
"value": "CHANGEME_SECRET_TOKEN",
|
||||
"parameter": {
|
||||
"source": "url",
|
||||
"name": "token"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user