mirror of
https://github.com/addnab/docker-run-action.git
synced 2025-07-19 07:11:32 +03:00
setup docker run action
This commit is contained in:
7
entrypoint.sh
Executable file
7
entrypoint.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -z $INPUT_USERNAME ];
|
||||
then echo $INPUT_USERNAME | docker login $INPUT_REGISTRY -u $INPUT_PASSWORD --password-stdin
|
||||
fi
|
||||
|
||||
exec docker run $INPUT_OPTIONS $INPUT_IMAGE $INPUT_COMMAND $INPUT_ARGS
|
Reference in New Issue
Block a user