Initial commit

This commit is contained in:
ViViDboarder 2017-05-26 23:56:22 -07:00
commit 92c8ca86ee
2 changed files with 15 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM alpine
MAINTAINER ViViDboarder <ViViDboarder@gmail.com>
RUN apk -Uuv add curl ca-certificates
ADD push.sh /bin/
RUN chmod +x /bin/push.sh
ENTRYPOINT /bin/push.sh

7
push.sh Normal file
View File

@ -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