Deploy swarm stacks against a SSH based remote docker daemon context
Go to file
Luke Murphy 9655b55dd7
continuous-integration/drone/push Build is passing Details
Add maybe a working implementation
2020-09-23 09:00:55 +02:00
.drone.yml Bootstrapping stack deploy plugin 2020-09-23 08:32:50 +02:00
Dockerfile Use right path, just run script 2020-09-23 08:36:19 +02:00
LICENSE Bootstrapping stack deploy plugin 2020-09-23 08:32:50 +02:00
README.md More docs: plugin + semver ref 2020-09-23 08:56:27 +02:00
plugin.sh Add maybe a working implementation 2020-09-23 09:00:55 +02:00

README.md

stack-ssh-deploy

Build Status

Deploy swarm stacks against a SSH based remote docker daemon context.

This is meant to be used as a Drone plugin.

Settings

  • stack: Name of the stack to be deployed
  • compose (default: compose.yml): compose file to use for deploying
  • host: SSH-based docker daemon context to deploy against
  • deploy_key: SSH private key part for ssh public key authentication

Example

---
kind: pipeline
name: deploy to swarm
steps:
  - name: stack deploy
    image: decentral1se/stack-ssh-deploy:0.0.1
    settings:
      stack: mystack
      host: "ssh://drone@swarm.autonomic.zone:222"
      deploy_key:
        from_secret: drone_deploy_key

Publishing

The version can be bumped in the .drone.yml file. Please use semver.

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