Cameron Moore
Cameron Moore
There's currently no way to do what you want without a shell script. `pass-file-to-command` only provides the filename as an environment variable, and webhook doesn't provide a means of passing...
Speaking for myself: I don't use k8s and rarely use Docker, so with limited time and knowledge, I'm not in a position to support them.
It looks like the only way to have webhook (or Go) spawn a background process and move on is to use [`exec.Start()`](https://golang.org/pkg/os/exec/#Cmd.Start).
@ElementCR, I think you're asking about a different problem. You need to daemonize the webhook process. This issue is about webhook spawning background process in response to a specific hook.
@milolav, please edit this PR to be against the `development` branch, not `master`. Also, the Travis CI builds are failed due to a bug in our Travis config. We should...
@milolav, I still haven't taken a good look at this PR, but you should be able to rebase against `development` to fix the Travis CI builds.
Please provide more details such a sample config.
webhook doesn't provide an easy way to do that, currently. Could be possible to write your own solution with https://github.com/adnanh/webhook/issues/356 once it's completed.
Your match rule is asserting that the `head_commit` value equals **the string "null"**, which I'm assuming is not what you're wanting to do. I'm assuming this is a JSON payload....
webhook doesn't currently support testing if a value is actually `null` since we assume the `value` property of the Match object will be a string. The closest you can probably...