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 +```