项目作者: drone-plugins

项目描述 :
Drone plugin to trigger downstream repositories to build
高级语言: Go
项目地址: git://github.com/drone-plugins/drone-downstream.git
创建时间: 2015-10-28T19:01:17Z
项目社区:https://github.com/drone-plugins/drone-downstream

开源协议:Apache License 2.0

下载


drone-downstream

Build Status
Gitter chat
Join the discussion at https://community.harness.io/
Drone questions at https://stackoverflow.com

Go Doc
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:

  1. export GOOS=linux
  2. export GOARCH=amd64
  3. export CGO_ENABLED=0
  4. export GO111MODULE=on
  5. go build -v -a -tags netgo -o release/linux/amd64/drone-downstream

Docker

Build the Docker image with the following command:

  1. docker build \
  2. --label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  3. --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
  4. --file docker/Dockerfile.linux.amd64 --tag plugins/downstream .

Usage

  1. docker run --rm \
  2. -e PLUGIN_REPOSITORIES=octocat/Hello-World \
  3. -e PLUGIN_TOKEN=eyJhbFciHiJISzI1EiIsUnR5cCW6IkpXQCJ9.ezH0ZXh0LjoidGJvZXJnZXIiLCJ0eXBlIjoidXNlciJ9.1m_3QFA6eA7h4wrBby2aIRFAEhQWPrlj4dsO_Gfchtc \
  4. -v $(pwd):$(pwd) \
  5. -w $(pwd) \
  6. plugins/downstream