Skip to content

Commit

Permalink
add option to pass arbitrary arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
siscia committed Jan 12, 2020
1 parent 07b72bd commit ace83db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ace83db

Please sign in to comment.