Drone plugin for creating and tagging Gitea releases
Go to file
Thomas Boerger 56a5d640b0
Restructuring of build process
2017-09-02 15:40:25 +02:00
vendor Added vendoring 2016-08-26 10:36:43 +02:00
.dockerignore Restructuring of build process 2017-09-02 15:40:25 +02:00
.drone.yml Restructuring of build process 2017-09-02 15:40:25 +02:00
.gitignore Restructuring of build process 2017-09-02 15:40:25 +02:00
Dockerfile Restructuring of build process 2017-09-02 15:40:25 +02:00
Dockerfile.arm Restructuring of build process 2017-09-02 15:40:25 +02:00
Dockerfile.arm64 Restructuring of build process 2017-09-02 15:40:25 +02:00
Dockerfile.windows Restructuring of build process 2017-09-02 15:40:25 +02:00
LICENSE Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
README.md Restructuring of build process 2017-09-02 15:40:25 +02:00
main.go Restructuring of build process 2017-09-02 15:40:25 +02:00
plugin.go Fix extraction of tag name from commit ref to handle `/` 2017-05-22 10:13:16 -06:00
release.go Implement prerelease option 2017-03-23 17:14:04 -06:00
utils.go Migrated to 0.5 structure and updated documentation 2016-08-26 10:38:22 +02:00

README.md

drone-github-release

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

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

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/drone-github-release
docker build --rm -t plugins/github-release .

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