refactor(docker): use arg to set rulebook name

ref: #3 #1
This commit is contained in:
2025-07-01 23:27:05 +09:30
parent 9f3b07c9f8
commit 7b11dc84de
2 changed files with 27 additions and 6 deletions

18
includes/entrypoint.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/sh
set -e
if [ $# -eq 0 ]; then
cd ${HOME};
ansible-rulebook \
-r nofusscomputing.git_events.${PROBLEM_MATCHER_NAME} \
--env-vars PROBLEM_MATCHER_PORT,PROBLEM_MATCHER_TOKEN \
-v;
else
exec "$@"
fi