drone-github-search-downstream

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

drone-github-search-downstream

Build Status

Drone plugin to trigger downstream repository builds based on github search. For the usage information and a listing of the available options please take a look at the docs.

Credits

The plugin is based on plugins/downstream.

Thanks should be givent to @tboerger and its contributors.

Build

Build the binary with the following commands:

go build

Docker

Build the Docker image with the following commands:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -o release/linux/amd64/github-search-downstream
docker build --rm -t gboo/github-search-downstream .

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_GITHUB_QUERY="org:drone-plugins topic:drone-plugin" \
  -e PLUGIN_DRONE_TOKEN=eyJhbFciHiJISzI1EiIsUnR5cCW6IkpXQCJ9.ezH0ZXh0LjoidGJvZXJnZXIiLCJ0eXBlIjoidXNlciJ9.1m_3QFA6eA7h4wrBby2aIRFAEhQWPrlj4dsO_Gfchtc \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  gboo/github-search-downstream

From Drone:

pipeline:
  trigger-downstream:
    image: gboo/github-search-downstream
    github_query: "org:drone-plugins topic:drone-plugin"
    branch: master
    drone_server: https://hold-on.nobody.run
    ignore_missing: true
    secrets: [ github_token, drone_token ]

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