Coder Social home page Coder Social logo

drone-bark's Introduction

Drone-bark

A plugin to Drone plugin for sending Bark notifications.

Screenshot

Usage

The following settings changes this plugin's behavior.

  • server_url (optional) sets the bark server url.
  • bark_device (required) sets the bark device key.
  • icon (optional) sets the notification icon in iOS.
  • group (optional) sets the notification group.
  • bark_level (optional) sets the notification level
    • active: default, system will display notification immediately.
    • timeSensitive: bark will send a time sensitive message which can display in focus mode.
    • passive: bark will only add this message to the notification list without turn the screen on.
  • sound (optional) sets bark notification sound.

Below is an example .drone.yml that uses this plugin.

kind: pipeline
name: default

steps:
- name: notify
  image: 0xJacky/drone-bark
  pull: if-not-exists
  settings:
    server_url: foo
    bark_device: 
      from_secret: bark_device
    icon: foobar
    bark_group: Drone CI
    bark_level: active
    bark_sound: silence

Building

docker build -t 0xJacky/drone-bark .

Testing

Execute the plugin from your current working directory:

docker run --rm -e PLUGIN_SERVER_URL=foo -e PLUGIN_BARK_DEVICE=bar \
  -e PLUGIN_ICON=foo -e PLUGIN_BARK_GROUP=Drone\ CI \
  -e PLUGIN_BARK_LEVEL=timeSensitive -e PLUGIN_BARK_SOUND=minuet \
  -e DRONE_COMMIT_SHA=8f51ad7884c5eb69c11d260a31da7a745e6b78e2 \
  -e DRONE_COMMIT_BRANCH=master \
  -e DRONE_BUILD_NUMBER=43 \
  -e DRONE_REPO_NAMESPACE=0xJacky \
  -e DRONE_REPO_NAME=drone-bark
  -e DRONE_BUILD_STATUS=success \
  -w /drone/src \
  -v $(pwd):/drone/src \
  0xJacky/drone-bark

drone-bark's People

Contributors

0xjacky avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

demon471 alanlang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.