From 8bce4aa10a03050401bb0d8831d5ba9ed89a8faa Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Thu, 28 Jan 2021 16:39:33 +0100 Subject: [PATCH] Add docker_network input --- action.yml | 4 ++++ entrypoint.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 5e10193..5c1fd4f 100644 --- a/action.yml +++ b/action.yml @@ -24,6 +24,10 @@ inputs: password: description: 'Password' required: false + docker_network: + description: 'Docker Network ID' + default: ${{ job.container.network }} + retuired: false runs: using: 'docker' image: 'Dockerfile' diff --git a/entrypoint.sh b/entrypoint.sh index 820921f..ad90d8b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,6 +5,7 @@ then echo $INPUT_PASSWORD | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --pa fi env +docker network ls echo "$INPUT_RUN" | sed -e 's/\\n/;/g' > semicolon_delimited_script