You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Adrien Vergé 140d51ae9a Fix `files` configuration key error 8 years ago
vendor Added vendoring 8 years ago
.drone.yml Migrated to 0.5 structure and updated documentation 8 years ago
.drone.yml.sig Migrated to 0.5 structure and updated documentation 8 years ago
.gitignore Updated gitignore file to current convention 8 years ago
DOCS.md Migrated to 0.5 structure and updated documentation 8 years ago
Dockerfile Migrated to 0.5 structure and updated documentation 8 years ago
Dockerfile.armhf Added dockerfile for arm builds 8 years ago
LICENSE
MAINTAINERS
README.md Migrated to 0.5 structure and updated documentation 8 years ago
logo.svg
main.go Fix `files` configuration key error 8 years ago
plugin.go Migrated to 0.5 structure and updated documentation 8 years ago
release.go Migrated to 0.5 structure and updated documentation 8 years ago
utils.go Migrated to 0.5 structure and updated documentation 8 years ago

README.md

drone-github-release

Build Status Go Doc Go Report Join the chat at https://gitter.im/drone/drone

Drone plugin to publish files and artifacts to GitHub Release. 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 commands:

go build
go test

Docker

Build the docker image with the following commands:

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo
docker build --rm=true -t plugins/github-release .

Please note incorrectly building the image for the correct x64 linux and with GCO disabled will result in an error when running the Docker image:

docker: Error response from daemon: Container command
'/bin/drone-github-release' not found or does not exist..

Usage

Execute from the working directory:

docker run --rm \
  -e DRONE_BUILD_EVENT=tag \
  -e DRONE_REPO_OWNER=octocat \
  -e DRONE_REPO_NAME=foo \
  -e DRONE_COMMIT_REF=refs/heads/master \
  -e PLUGIN_API_KEY=${HOME}/.ssh/id_rsa \
  -e PLUGIN_FILES=master \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  plugins/github-release