Drone plugin to copy files into a remote docker container
This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
decentral1se 9f703e415c
continuous-integration/drone/push Build is passing Details
Drop pinning, it'll be fine
2021-05-05 13:04:48 +02:00
.drone.yml Tyop 2020-11-14 23:42:41 +02:00
Dockerfile Drop pinning, it'll be fine 2021-05-05 13:04:48 +02:00
LICENSE Initial working(?) version 2020-11-14 23:38:27 +02:00
README.md Fix badge URLs 2021-05-05 11:57:58 +02:00
plugin.sh Add chdir option 2020-11-15 00:52:31 +02:00

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

Makes me sad they exist

  • chdir (default: none): Add -C option to tar

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.