Compare commits

...
This repository has been archived on 2024-09-20. You can view files and clone it, but cannot push or open issues or pull requests.

5 commits

Author SHA1 Message Date
Abdud Dayan Adeeb
940e86ea21 fixes 2020-06-17 20:50:44 -04:00
Abdud Dayan Adeeb
b1bd71bac3 fixes 2020-06-17 20:39:10 -04:00
Abdud Dayan Adeeb
cf18d277e1 fix: semicolon delimited script 2020-06-17 20:36:04 -04:00
Abdud Dayan Adeeb
a0a75b001b debug multiline 2020-06-17 20:18:29 -04:00
Abdud Dayan Adeeb
d94e0f37db debug 2020-06-17 19:15:51 -04:00

View file

@ -4,4 +4,6 @@ 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
echo "$INPUT_COMMAND" | sed -e 's/\\n/;/g' > semicolon_delimited_script
exec docker run $INPUT_OPTIONS $INPUT_IMAGE /bin/sh -c "`cat semicolon_delimited_script`"