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
2016-01-15 16:02:12 -06:00
.drone.sec updating documentation for checksum usage 2016-01-15 11:29:12 -06:00
.drone.yml updating documentation for checksum usage 2016-01-15 11:29:12 -06:00
.gitignore updating documentation for checksum usage 2016-01-15 11:29:12 -06:00
checksum.go adding checksum options 2016-01-15 10:46:00 -06:00
Dockerfile comments, cleanup, and some restructure 2016-01-11 22:33:03 -06:00
DOCS.md using StringSlice instead of []string for Files 2016-01-15 16:02:12 -06: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 using StringSlice instead of []string for Files 2016-01-15 16:02:12 -06:00
MAINTAINERS Updated MAINTAINERS file [CI SKIP] 2015-12-09 14:18:43 -08:00
Makefile fix typo 2016-01-15 11:30:36 -06:00
README.md updating checksums to checksum and using drone.StringSlice instead of []string 2016-01-15 15:30:59 -06:00
types.go using StringSlice instead of []string for Files 2016-01-15 16:02:12 -06:00

drone-github-release

Build Status

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"
        ],
        "checksum": [
            "md5",
            "sha1",
            "sha256",
            "sha512",
            "adler32",
            "crc32"
        ]
    }
}
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"
        ],
        "checksum": [
            "md5",
            "sha1",
            "sha256",
            "sha512",
            "adler32",
            "crc32"
        ]
    }
}
EOF