TheCatLady / docker-webhook

A lightweight, minimal webhook container ⚓
https://hub.docker.com/r/thecatlady/webhook
MIT License
96 stars 21 forks source link

Script not found #124

Closed M4TY closed 1 year ago

M4TY commented 1 year ago

When deploying my hooks.yml file, it cannot find the scripts I made for each of my deployments. Is this a known issue?

TheCatLady commented 1 year ago

You will need to make sure the scripts are mounted to the Docker container. You can place the scripts in the config folder along with the hooks.yml file, or add additional volume mounts.

regisin commented 2 months ago

Hi, I'm having the same problem. I can see that the volumes are mounted, but if I try to run the script, the container can't find it. Here is a screenshot of me trying to run the script manually: image

regisin commented 2 months ago

Hi, I'm having the same problem. I can see that the volumes are mounted, but if I try to run the script, the container can't find it. Here is a screenshot of me trying to run the script manually: image

Nevermind, my issue was the shebang was wrong! I had #!/bin/bash instead of the #!/usr/bin/env sh.