Thomas Boerger 64fcb9285a Merge pull request #2 from drone-plugins/feature/dronesec
Updated drone.sec to include the updated checksum
2016-01-15 23:21:37 +01:00
2015-10-30 11:21:11 -07:00
2015-10-20 11:05:53 -07:00
2015-10-21 12:34:42 -07:00
2016-01-01 21:36:08 +01:00
2016-01-01 21:36:08 +01:00
2015-12-09 14:19:04 -08:00
2016-01-01 21:32:30 +01:00
2016-01-01 21:34:37 +01:00

drone-ssh

Build Status

Drone plugin for executing commands on a remote host through SSH

Usage

./drone-ssh <<EOF
{
    "repo" : {
        "owner": "foo",
        "name": "bar",
        "full_name": "foo/bar"
    },
    "build" : {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "commit": "9f2849d5",
        "branch": "master",
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
    },
    "vargs": {
        "host": "foo.com",
        "user": "root",
        "port": 22,
        "commands": [
            "echo hello",
            "echo world"
        ]
    }
}
EOF

Docker

Build the Docker container using make:

make deps build docker

Example

docker run -i plugins/drone-ssh <<EOF
{
    "repo" : {
        "owner": "foo",
        "name": "bar",
        "full_name": "foo/bar"
    },
    "build" : {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "commit": "9f2849d5",
        "branch": "master",
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
    },
    "vargs": {
        "host": "foo.com",
        "user": "root",
        "port": 22,
        "commands": [
            "echo hello",
            "echo world"
        ]
    }
}
EOF
Description
用作 cicd/ssh-action 仓库基础组件
Readme 5.4 MiB
1 Latest
2024-11-17 14:48:14 +08:00
Languages
Go 85.9%
Makefile 11.9%
Dockerfile 1.6%
Shell 0.6%