From 1ee71fcc4ebb09b542436599c27788da4c9bd246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 10 Jan 2022 13:38:42 +0100 Subject: [PATCH] Add README and CI --- .woodpecker.yml | 28 ++++++++++++++++++++++++++++ README.md | 17 ++++++++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..24714e9 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,28 @@ +pipeline: + release-latest: + image: plugins/docker + settings: + repo: registry.t-juice.club/plugin-gotify + registry: registry.t-juice.club + username: woodpecker + password: + from_secret: registry_password + tags: + - latest + - "${CI_COMMIT_SHA:0:8}" + when: + branch: master + event: push + + release-tagged: + image: plugins/docker + settings: + repo: registry.t-juice.club/plugin-gotify + registry: registry.t-juice.club + username: woodpecker + password: + from_secret: registry_password + tags: + - "${CI_COMMIT_TAG}" + when: + event: [tag] diff --git a/README.md b/README.md index 73d8535..6dab6f9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ # plugin-gotify -Plugin for woodpecker to send messages to gotify. \ No newline at end of file +Plugin for woodpecker to send messages to gotify. + +## Usage + +```yaml +pipeline: + notification: + image: registry.t-juice.club/plugin-gotify + settings: + gotify_url: https://gotify.t-juice.club + gotify_token: + from_secret: gotify_token + title: "Message lol" + message: | + Notification message body +```