From 82e7e6a96d0714794f78a238dc3c8db5368ad568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 10 Jan 2022 13:33:06 +0100 Subject: [PATCH] Initial commit --- Dockerfile | 4 ++++ README.md | 3 +++ entrypoint.sh | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dcc1f83 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine:latest +RUN apk add --no-cache curl +COPY entrypoint.sh /bin/entrypoint.sh +CMD ["/bin/entrypoint.sh"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..73d8535 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# plugin-gotify + +Plugin for woodpecker to send messages to gotify. \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..10eb654 --- /dev/null +++ b/entrypoint.sh @@ -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" \ No newline at end of file