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.
Thomas Boerger
a68b10861f
|
7 years ago | |
---|---|---|
vendor | 8 years ago | |
.dockerignore | 7 years ago | |
.drone.yml | 7 years ago | |
.gitignore | 7 years ago | |
Dockerfile | 7 years ago | |
Dockerfile.arm | 7 years ago | |
Dockerfile.arm64 | 7 years ago | |
Dockerfile.windows | 7 years ago | |
LICENSE | 9 years ago | |
README.md | 7 years ago | |
main.go | 7 years ago | |
plugin.go | 8 years ago | |
release.go | 8 years ago | |
utils.go | 8 years ago |
README.md
drone-github-release
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