mirror of
https://github.com/thegeeklab/wp-gitea-release.git
synced 2024-11-09 17:30:39 +00:00
Woodpecker CI plugin to publish files and artifacts to Gitea releases
7e4938ebcf
Comments, Cleanup, Tweaks, and Slight Restructure |
||
---|---|---|
.drone.sec | ||
.drone.yml | ||
.gitignore | ||
Dockerfile | ||
DOCS.md | ||
LICENSE | ||
logo.svg | ||
main.go | ||
MAINTAINERS | ||
Makefile | ||
README.md | ||
types.go |
drone-github-release
Drone plugin for publishing GitHub releases
Usage
./drone-github-release <<EOF
{
"repo": {
"clone_url": "git://github.com/drone/drone",
"full_name": "drone/drone",
"owner": "drone",
"name": "drone"
},
"build": {
"event": "tag",
"branch": "refs/heads/v0.0.1",
"commit": "8f5d3b2ce38562bedb48b798328f5bb2e4077a2f",
"ref": "refs/heads/v0.0.1"
},
"workspace": {
"root": "/drone/src",
"path": "/drone/src/github.com/drone/drone"
},
"vargs": {
"api_key": "your_api_key",
"files": [
"dist/*.txt",
"dist/other-file"
]
}
}
EOF
Docker
Build the Docker container using make
:
make deps build docker
Example
docker run -i plugins/drone-github-release <<EOF
{
"repo": {
"clone_url": "git://github.com/drone/drone",
"full_name": "drone/drone",
"owner": "drone",
"name": "drone"
},
"build": {
"event": "tag",
"branch": "refs/heads/v0.0.1",
"commit": "8f5d3b2ce38562bedb48b798328f5bb2e4077a2f",
"ref": "refs/heads/v0.0.1"
},
"workspace": {
"root": "/drone/src",
"path": "/drone/src/github.com/drone/drone"
},
"vargs": {
"api_key": "your_api_key",
"files": [
"dist/*.txt",
"dist/other-file"
]
}
}
EOF