a1222dc7d885c37bb216087a33b09225fe27bd66
				
			
			
		
	
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			stack-ssh-deploy
Deploy swarm stacks against a SSH based remote docker daemon context.
This is meant to be used as a Drone plugin.
Settings
Required (no default)
- deploy_key: SSH private key part for ssh public key authentication
- stack: Name of the stack to be deployed
Optional (with defaults)
- compose (default: compose.yml): compose file to use for deploying
- host (default: swarm.autonomic.zone): Host to deploy to (don't includessh://)
- port (default: 222): SSH port to connect to
- user (default: drone): System user to connect via SSH with
Dangerous options, unwise outside CI
- generate_secrets (default: false): randomly set allsecrets:found in the compose file -- you won't be able to retrieve them afterwards, so you almost certainly don't want this for real deployments.
- purge (default: false): runs aggresive cleaning up measure to wipe deployment afterwards
Example
---
kind: pipeline
name: deploy to swarm
steps:
  - name: stack deploy
    image: decentral1se/stack-ssh-deploy:latest
    settings:
      stack: mystack
      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.
					Languages
				
				
								
								
									Shell
								
								94.2%
							
						
							
								
								
									Dockerfile
								
								3.1%
							
						
							
								
								
									Makefile
								
								2.7%