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 ## 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 - **deploy_key**: SSH private key part for ssh public key authentication
## Example ## Example
@ -19,6 +21,7 @@ steps:
- name: stack deploy - name: stack deploy
image: decentral1se/stack-ssh-deploy:0.0.1 image: decentral1se/stack-ssh-deploy:0.0.1
settings: settings:
stack: mystack
host: "ssh://drone@swarm.autonomic.zone:222" host: "ssh://drone@swarm.autonomic.zone:222"
deploy_key: deploy_key:
from_secret: drone_deploy_key from_secret: drone_deploy_key

View File

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