https://github.com/drone-plugins/drone-downstream
Drone plugin to trigger downstream repositories to build
https://github.com/drone-plugins/drone-downstream
drone drone-plugin
Last synced: 2 months ago
JSON representation
Drone plugin to trigger downstream repositories to build
- Host: GitHub
- URL: https://github.com/drone-plugins/drone-downstream
- Owner: drone-plugins
- License: apache-2.0
- Created: 2015-10-28T19:01:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T14:00:33.000Z (over 2 years ago)
- Last Synced: 2024-06-20T01:56:27.562Z (almost 2 years ago)
- Topics: drone, drone-plugin
- Language: Go
- Homepage: http://plugins.drone.io/drone-plugins/drone-downstream
- Size: 472 KB
- Stars: 30
- Watchers: 9
- Forks: 42
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-downstream
[](http://cloud.drone.io/drone-plugins/drone-downstream)
[](https://gitter.im/drone/drone)
[](https://community.harness.io/)
[](https://stackoverflow.com/questions/tagged/drone.io)
[](https://microbadger.com/images/plugins/downstream "Get your own image badge on microbadger.com")
[](http://godoc.org/github.com/drone-plugins/drone-downstream)
[](https://goreportcard.com/report/github.com/drone-plugins/drone-downstream)
Drone plugin to trigger downstream repository builds. For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-downstream/).
## Build
Build the binary with the following command:
```console
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
go build -v -a -tags netgo -o release/linux/amd64/drone-downstream
```
## Docker
Build the Docker image with the following command:
```console
docker build \
--label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
--file docker/Dockerfile.linux.amd64 --tag plugins/downstream .
```
## Usage
```console
docker run --rm \
-e PLUGIN_REPOSITORIES=octocat/Hello-World \
-e PLUGIN_TOKEN=eyJhbFciHiJISzI1EiIsUnR5cCW6IkpXQCJ9.ezH0ZXh0LjoidGJvZXJnZXIiLCJ0eXBlIjoidXNlciJ9.1m_3QFA6eA7h4wrBby2aIRFAEhQWPrlj4dsO_Gfchtc \
-v $(pwd):$(pwd) \
-w $(pwd) \
plugins/downstream
```