drone-plugins/drone-bintray

Name: drone-bintray

Owner: drone-plugins

Description: Drone plugin for publishing files to Bintray

Created: 2015-11-17 23:25:19.0

Updated: 2018-03-15 15:38:28.0

Pushed: 2018-03-21 23:59:43.0

Homepage:

Size: 337

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

drone-bintray

Build Status Coverage Status [](https://imagelayers.io/?images=plugins/drone-bintray:latest 'Get your own badge on imagelayers.io')

Drone plugin to publish files and artifacts to Bintray. For the usage information and a listing of the available options please take a look at the docs.

Binary

Build the binary using make:

 deps build
Example
one-bintray <<EOF

"repo": {
    "clone_url": "git://github.com/drone/drone",
    "owner": "drone",
    "name": "drone",
    "full_name": "drone/drone"
},
"system": {
    "link_url": "https://beta.drone.io"
},
"build": {
    "number": 22,
    "status": "success",
    "started_at": 1421029603,
    "finished_at": 1421029813,
    "message": "Update the Readme",
    "author": "johnsmith",
    "author_email": "john.smith@gmail.com"
    "event": "push",
    "branch": "master",
    "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
    "ref": "refs/heads/master"
},
"workspace": {
    "root": "/drone/src",
    "path": "/drone/src/github.com/drone/drone"
},
"vargs": {
    "username": "octocat",
    "password": "pa$$word",
    "branch": "master"
    "artifacts": [{
        "file": "dist/myfile",
        "owner": "mycompany",
        "type": "executable",
        "repository": "reponame",
        "package": "pkgname"
        "version": "1.0",
        "target": "myfile",
        "publish": true,
        "override": true
    }, {
        "file": "dist/myfile.deb",
        "owner": "mycompany",
        "type": "Debian",
        "repository": "debian-repo",
        "package": "pkgname",
        "version": "1.0",
        "target": "myfile.deb",
        "distr": "ubuntu",
        "component": "main",
        "arch": [
            "amd64"
        ],
        "publish": true,
        "override": true
    }]
}


Docker

Build the container using make:

 deps docker
Example
er run -i plugins/drone-bintray <<EOF

"repo": {
    "clone_url": "git://github.com/drone/drone",
    "owner": "drone",
    "name": "drone",
    "full_name": "drone/drone"
},
"system": {
    "link_url": "https://beta.drone.io"
},
"build": {
    "number": 22,
    "status": "success",
    "started_at": 1421029603,
    "finished_at": 1421029813,
    "message": "Update the Readme",
    "author": "johnsmith",
    "author_email": "john.smith@gmail.com"
    "event": "push",
    "branch": "master",
    "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
    "ref": "refs/heads/master"
},
"workspace": {
    "root": "/drone/src",
    "path": "/drone/src/github.com/drone/drone"
},
"vargs": {
    "username": "octocat",
    "password": "pa$$word",
    "branch": "master"
    "artifacts": [{
        "file": "dist/myfile",
        "owner": "mycompany",
        "type": "executable",
        "repository": "reponame",
        "package": "pkgname"
        "version": "1.0",
        "target": "myfile",
        "publish": true,
        "override": true
    }, {
        "file": "dist/myfile.deb",
        "owner": "mycompany",
        "type": "Debian",
        "repository": "debian-repo",
        "package": "pkgname",
        "version": "1.0",
        "target": "myfile.deb",
        "distr": "ubuntu",
        "component": "main",
        "arch": [
            "amd64"
        ],
        "publish": true,
        "override": true
    }]
}



This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.