https://github.com/drone-plugins/drone-github-release-download
Drone plugin for downloading GitHub Releases
https://github.com/drone-plugins/drone-github-release-download
drone drone-plugin
Last synced: 4 months ago
JSON representation
Drone plugin for downloading GitHub Releases
- Host: GitHub
- URL: https://github.com/drone-plugins/drone-github-release-download
- Owner: drone-plugins
- License: apache-2.0
- Created: 2019-08-27T21:39:30.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-11-16T21:36:58.000Z (7 months ago)
- Last Synced: 2025-11-16T23:20:41.725Z (7 months ago)
- Topics: drone, drone-plugin
- Language: Go
- Homepage: http://plugins.drone.io/drone-plugins/drone-github-release-download
- Size: 270 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-github-release-download
[](http://harness.drone.io/drone-plugins/drone-github-release-download)
[](https://join.slack.com/t/harnesscommunity/shared_invite/zt-y4hdqh7p-RVuEQyIl5Hcx4Ck8VCvzBw)
[](https://community.harness.io)
[](https://stackoverflow.com/questions/tagged/drone.io)
[](http://godoc.org/github.com/drone-plugins/drone-github-release-download)
[](https://goreportcard.com/report/github.com/drone-plugins/drone-github-release-download)
Drone plugin for downloading Github Releases.
## Build
Build the binary with the following command:
```bash
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
go build -v -a -tags netgo -o release/linux/amd64/drone-github-release-download ./cmd/drone-github-release-download
```
## Docker
Build the Docker image with the following command:
```bash
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/github-release-download .
```
## Usage
```bash
docker run --rm \
-e PLUGIN_API_KEY=${HOME}/.ssh/id_rsa \
-e PLUGIN_OWNER=octocat \
-e PLUGIN_NAME=foo \
-e PLUGIN_FILES=foo.zip \
-v $(pwd):$(pwd) \
-w $(pwd) \
plugins/github-release-download
```