Initial commit
This commit is contained in:
commit
92c8ca86ee
8
Dockerfile
Normal file
8
Dockerfile
Normal 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
7
push.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user