More more more settings
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
da969af327
commit
056d53d29d
|
@ -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
|
||||||
|
|
|
@ -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 "-------------------------------"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue