Drone plugin to copy files into a remote docker container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
knoflook 8df80fcd8f make sure there's only one container 2 weeks ago
.drone.yml chore(deps): update debian docker tag to v11 2 weeks ago
Dockerfile Drop pinning, it'll be fine 2 years ago
LICENSE Initial working(?) version 2 years ago
README.md docs: update build status badge 1 year ago
plugin.sh make sure there's only one container 2 weeks ago
renovate.json Add renovate.json 2 weeks ago

README.md

stack-ssh-deploy

Build Status

Drone plugin to copy files into a remote docker container.

Settings

Required (no default)

  • deploy_key: SSH private key part for ssh public key authentication
  • service: Name of the target service
  • dest: Absolute path to copy files into

Optional (with defaults)

  • source (default: .): Local path to copy from
  • host (default: swarm.autonomic.zone): Host to deploy to (don't include ssh://)
  • port (default: 222): SSH port to connect to
  • user (default: drone): System user to connect via SSH with
  • exec (default: none): Run a command in the container after copying

Makes me sad they exist

  • chdir (default: none): Add -C option to tar; i.e. change to a directory first

Example

---
kind: pipeline
name: deploy to docker container
steps:
  - name: docker cp deploy
    image: 3wordchant/docker-cp-deploy:latest
    settings:
      host: swarm.example.com
      service: foo_bar_com_app
      dest: /var/www/html/
      deploy_key:
        from_secret: drone_deploy_key

Publishing

The version can be bumped in the .drone.yml file. We're sticking with latest as we iterate on the code right now.

If you push a commit to master, the Drone config will publish to Docker Hub.