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.
stack-ssh-deploy/README.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2020-09-23 06:32:50 +00:00
# stack-ssh-deploy
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/stack-ssh-deploy/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/stack-ssh-deploy)
Deploy swarm stacks against a SSH based remote docker daemon context.
2020-09-23 06:56:27 +00:00
This is meant to be used as a [Drone plugin](http://plugins.drone.io/).
2020-09-23 06:44:37 +00:00
## Settings
2020-09-23 06:50:38 +00:00
- **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 (don't include `ssh://`)
- **port** (default: `22`): SSH port to connect to
2020-09-23 06:44:37 +00:00
- **deploy_key**: SSH private key part for ssh public key authentication
2020-09-23 06:32:50 +00:00
## Example
```yaml
---
kind: pipeline
name: deploy to swarm
steps:
- name: stack deploy
image: decentral1se/stack-ssh-deploy:0.0.1
settings:
2020-09-23 06:50:38 +00:00
stack: mystack
host: "drone@swarm.autonomic.zone"
port: 222
2020-09-23 06:32:50 +00:00
deploy_key:
from_secret: drone_deploy_key
```
2020-09-23 06:44:56 +00:00
## Publishing
2020-09-23 06:56:27 +00:00
The version can be bumped in the [.drone.yml](./.drone.yml) file. Please use [semver](https://semver.org).
2020-09-23 06:44:56 +00:00
If you push a commit to master, the [Drone config](./.drone.yml) will publish to [Docker Hub](https://hub.docker.com/r/decentral1se/stack-ssh-deploy).