3
0
Files
puppet_cd/templates/r10k/hook_config.erb

37 lines
877 B
Plaintext

[
{
"id": "r10k-deploy",
"execute-command": "/usr/local/bin/r10k-wrapper.sh",
"command-working-directory": "/etc/puppetlabs/code",
"pass-arguments-to-command": [
{ "source": "string", "name": "deploy" },
{ "source": "string", "name": "environment" },
{ "source": "string", "name": "-pv" }
],
"trigger-rule": {
"and": [
{
"match": {
"type": "value",
"value": "production",
"parameter": {
"source": "jsonpath",
"name": "$.object_attributes.target_branch"
}
}
},
{
"match": {
"type": "value",
"value": "merge_request",
"parameter": {
"source": "jsonpath",
"name": "$.object_kind"
}
}
}
]
}
}
]