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
Size: 19
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
[](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.
Install the deps using make
:
install
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"
]
}
Build the container using make
:
docker
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"
]
}