diff --git a/README.md b/README.md index 9e69937..7010597 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/plugin.sh b/plugin.sh index cdeed70..47f6029 100755 --- a/plugin.sh +++ b/plugin.sh @@ -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 "-------------------------------" }