commit 92c8ca86ee0a4ab1160f70872a9f34d278b56278 Author: ViViDboarder Date: Fri May 26 23:56:22 2017 -0700 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4207922 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine +MAINTAINER ViViDboarder + +RUN apk -Uuv add curl ca-certificates +ADD push.sh /bin/ +RUN chmod +x /bin/push.sh + +ENTRYPOINT /bin/push.sh diff --git a/push.sh b/push.sh new file mode 100644 index 0000000..a2d8625 --- /dev/null +++ b/push.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +# If username and password are provided, add auth +if [ ! -z "$PLUGIN_USERNAME" ] && [ ! -z "$PLUGIN_PASSWORD" ]; then + AUTH="-u ${PLUGIN_USERNAME}:${PLUGIN_PASSWORD}" +fi +curl -T $PLUGIN_FILE $AUTH $PLUGIN_DESTINATION