mirror of
https://github.com/addnab/docker-run-action.git
synced 2025-01-14 00:27:58 +08:00
commit
e48328783a
@ -24,6 +24,10 @@ inputs:
|
|||||||
password:
|
password:
|
||||||
description: 'Password'
|
description: 'Password'
|
||||||
required: false
|
required: false
|
||||||
|
docker_network:
|
||||||
|
description: 'Docker Network ID'
|
||||||
|
default: ${{ job.container.network }}
|
||||||
|
retuired: false
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
|
@ -6,4 +6,4 @@ fi
|
|||||||
|
|
||||||
echo "$INPUT_RUN" | sed -e 's/\\n/;/g' > semicolon_delimited_script
|
echo "$INPUT_RUN" | sed -e 's/\\n/;/g' > semicolon_delimited_script
|
||||||
|
|
||||||
exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`"
|
exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" --network=$INPUT_DOCKER_NETWORK $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user