Public | Automated Build

Last pushed: a year ago
Short Description
drone-scp plugin for drone 0.5 to scp files to remote servers
Full Description

drone-scp

Drone 0.5 plugin to scp files from current cloned repo ($PWD) to the target server.

Usage: (In .drone.yml)

pipeline:
  scp:
    image: ccfoss/drone-scp
    server: <server ip address>
    user: <user name>
    target: <Dest folder to copy the files to>
    #Add ssh key to secrets
    #drone secret add --image cakkineni/drone-scp ccfoss/swarm-cluster  SSH_PKEY @/home/cloud-user/.ssh/id_rsa

Add Keys to drone secrets (using drone cli)

export DRONE_TOKEN=<Token from drone server>
export DRONE_SERVER=<Drone Website URL>

drone secret add --image ccfoss/drone-scp CCF-Core/swarm-cluster  SSH_PKEY @/home/cloud-user/.ssh/id_rsa

Sign .drone.yml before checkin(using drone cli)

export DRONE_TOKEN=<Token from drone server>
export DRONE_SERVER=<Drone Website URL>

drone sign CCF-Core/swarm-cluster
Docker Pull Command
Owner
ccfoss
Source Repository