More more more settings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-09-23 08:50:38 +02:00
parent da969af327
commit 056d53d29d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,9 @@ Deploy swarm stacks against a SSH based remote docker daemon context.
## Settings
- **host**: SSH-based docker daemon context
- **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
@ -19,6 +21,7 @@ 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

View File

@ -1,8 +1,12 @@
#!/bin/sh
load_deploy_key() {
PLUGIN_COMPOSE=${PLUGIN_COMPOSE:-compose.yml}
echo "FOUND THE FOLLOWING SETTINGS..."
echo "$PLUGIN_STACK"
echo "$PLUGIN_HOST"
echo "$PLUGIN_COMPOSE"
echo "$PLUGIN_DEPLOY_KEY"
echo "-------------------------------"
}