setup docker run action

This commit is contained in:
Abdud Dayan Adeeb
2020-06-17 18:47:31 -04:00
parent b5d56dc516
commit 7444b2b5ac
5 changed files with 81 additions and 0 deletions

7
entrypoint.sh Executable file
View 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