0
0
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
Go to file
Brad Rydzewski 521e9f72a7 Merge pull request #1 from tboerger/feature/basics
Implemented initial version with go-github
2015-11-23 13:39:28 -08:00
vendor Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
.drone.sec Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
.drone.yml Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
.gitignore Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
Dockerfile Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
DOCS.md Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
glide.yaml Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
LICENSE Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
logo.svg Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
main.go Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
README.md Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00

drone-github-release

Drone plugin for publishing GitHub releases

Usage

Publish a release:

./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 the netgo build tag to eliminate the CGO dependency:

GO15VENDOREXPERIMENT=1 CGO_ENABLED=0 go build -a -tags netgo
docker build --rm=true -t plugins/drone-github-release .