From ace83dbf21fc27d1a88cef3b670f7d58f54834d7 Mon Sep 17 00:00:00 2001 From: siscia Date: Sun, 12 Jan 2020 09:36:43 +0000 Subject: [PATCH] add option to pass arbitrary arguments --- action.yml | 4 ++++ entrypoint.sh | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d498ca3..c67aed8 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,10 @@ inputs: description: 'Number of Redis databases' required: false default: 16 + server argumentes: + description: 'Arguments to pass as input to redis-server' + required: false + default: "" runs: using: 'docker' image: 'Dockerfile' diff --git a/entrypoint.sh b/entrypoint.sh index 9bff410..10bb4f7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh -docker_run="docker run -d -p 6379:6379 redis:$INPUT_REDIS_VERSION redis-server --databases $INPUT_NUMBER_OF_DATABASES" +docker_run="docker run -d -p 6379:6379 redis:$INPUT_REDIS_VERSION \ + redis-server --databases $INPUT_NUMBER_OF_DATABASES \ + $INPUT_SERVER_ARGUMENTS" sh -c "$docker_run"