Initial commit

This commit is contained in:
Torjus Håkestad 2022-01-10 13:33:06 +01:00
commit 82e7e6a96d
3 changed files with 11 additions and 0 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM alpine:latest
RUN apk add --no-cache curl
COPY entrypoint.sh /bin/entrypoint.sh
CMD ["/bin/entrypoint.sh"]

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# plugin-gotify
Plugin for woodpecker to send messages to gotify.

4
entrypoint.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# TODO: Verify that variables are set properly
curl "${PLUGIN_GOTIFY_URL}/message?token=${PLUGIN_GOTIFY_TOKEN}" -F "title=${PLUGIN_TITLE}" -F "message=${PLUGIN_MESSAGE}" -F "priority=5"