drone-synochat

command module
v0.0.0-...-4ac1fd5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 9 Imported by: 0

README

Synology Synochat plugin for Drone

Sends messages to Synology Chat Server from your drone builds.

Usage

---
pipeline:
  build:
    image: ghcr.io/0ghny/drone-synochat
    settings:
      url: http://your_synology_url:port
      token: <your incoming webhook token>
      message: "hello synochat!"
      skipssl: true
Settings
NAME DESCRIPTION DEFAULT
URL synology server url, the same you use to connect from your browser
TOKEN incoming webhook token
MESSAGE the message to post
SKIPSSL if you wanna skip ssl certificate check false

Developer

Build

Build the binary with the following command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

go build -v -a -o drone-synochat
Docker

Build the Docker image with the following command:

docker build --tag drone-synochat .
Test in local
docker run --rm \
  -e PLUGIN_URL=<synology server url> \
  -e PLUGIN_TOKEN=<the token> \
  -e PLUGIN_MESSAGE="your message" \
  -e PLUGIN_SKIPSSL=true
  drone-synochat

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL