drone-plugins/drone-sftp

Name: drone-sftp

Owner: drone-plugins

Description: Drone plugin for uploading files to an SFTP server

Created: 2016-01-26 21:20:24.0

Updated: 2018-04-19 13:10:14.0

Pushed: 2016-11-07 07:46:38.0

Homepage:

Size: 19

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

drone-sftp

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

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

Execute

Install the deps using make:

 install
Example
start <<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": {
    "host": "sftp.company.com",
    "port": 2222,
    "username": "username",
    "password": "pa$$word",
    "destination_path": "/share",
    "files": [
        "*.md"
    ]
}


Docker

Build the container using make:

 docker
Example
er run -i plugins/drone-sftp <<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": {
    "host": "sftp.company.com",
    "port": 2222,
    "username": "username",
    "password": "pa$$word",
    "destination_path": "/share",
    "files": [
        "*.md"
    ]
}



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.