Updated the entrypoint for calpine docker

This commit is contained in:
Sambo Chea 2021-07-14 15:56:11 +07:00
parent a4d22160a8
commit aea63a307f
2 changed files with 2 additions and 10 deletions

View File

@ -1,13 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
# if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
# set -- node "$@"
# fi
# exec "$@"
if [ ! -z $INPUT_USERNAME ]; if [ ! -z $INPUT_USERNAME ];
then echo $INPUT_PASSWORD | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin then echo $INPUT_PASSWORD | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin
fi fi
@ -23,7 +15,7 @@ then INPUT_SHELL=sh
fi fi
if [ -z $INPUT_IMAGE ]; if [ -z $INPUT_IMAGE ];
then INPUT_IMAGE=docker then INPUT_IMAGE=calpine-docker
fi fi
if [ -z $semicolon_delimited_script ]; if [ -z $semicolon_delimited_script ];