Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

grafana/drone-downstream

 
 

drone-downstream

Build Status Go.dev Go Report

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.

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 release/linux/amd64/drone-downstream ./cmd/drone-downstream

Docker

Build the Docker image with the following command:

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 grafana/drone-downstream .

Usage

docker run --rm \
  -e PLUGIN_REPOSITORIES=octocat/Hello-World \
  -e PLUGIN_TOKEN=eyJhbFciHiJISzI1EiIsUnR5cCW6IkpXQCJ9.ezH0ZXh0LjoidGJvZXJnZXIiLCJ0eXBlIjoidXNlciJ9.1m_3QFA6eA7h4wrBby2aIRFAEhQWPrlj4dsO_Gfchtc \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  grafana/drone-downstream

About

Drone plugin to trigger downstream repositories to build

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 71.3%
  • Starlark 27.9%
  • Makefile 0.8%