1
0
Fork 0

added build script and initial version

master
Hanjo Meinhardt 6 years ago
parent 63b04c108f
commit 7c3070f327

@ -0,0 +1,9 @@
pipeline:
docker:
image: plugins/docker
repo: bunix42/drone-sendxmpp
tags:
- 0.0.1
- latest
secrets: [ docker_username, docker_password ]

@ -0,0 +1,13 @@
FROM debian
MAINTAINER hanjo@bunix.de
RUN apt-get update && apt-get install -y \
sendxmpp \
&& rm -rf /var/lib/apt/lists/*
ADD sendxmpp.sh /bin/sendxmpp.sh
RUN chmod +x /bin/sendxmpp.sh
ENTRYPOINT /bin/sendxmpp.sh

@ -0,0 +1,21 @@
#!/bin/sh
: ${PLUGIN_USERNAME?"missing username"}
: ${PLUGIN_JSERVER?"missing jserver"}
: ${PLUGIN_PASSWORD?"missing password"}
: ${PLUGIN_RECIPIENT?"missing recipient"}
env | grep DRONE
MSG="drone ist da"
CMD="sendxmpp \
-u ${PLUGIN_USERNAME} \
-j ${PLUGIN_JSERVER} \
-p ${PLUGIN_PASSWORD} \
--tls \
--verbose \
--no-tls-verify
${PLUGIN_RECIPIENT}"
echo $MSG | $CMD
Loading…
Cancel
Save