From 92c8ca86ee0a4ab1160f70872a9f34d278b56278 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 26 May 2017 23:56:22 -0700 Subject: [PATCH] Initial commit --- Dockerfile | 8 ++++++++ push.sh | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100644 push.sh 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