Use CMD and actually run it
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b12eeb548e
commit
4b4fea83f6
|
@ -9,7 +9,7 @@ Use [`abra`](https://git.autonomic.zone/coop-cloud/abra) as a [Drone plugin](htt
|
|||
### Required (no default)
|
||||
|
||||
- **deploy_key**: SSH private key part for running `git push` related commands
|
||||
- **command**: The command to run (passed to `abra` executable)
|
||||
- **cmd**: The command to run (passed to `abra` executable)
|
||||
|
||||
## Example
|
||||
|
||||
|
@ -18,10 +18,10 @@ Use [`abra`](https://git.autonomic.zone/coop-cloud/abra) as a [Drone plugin](htt
|
|||
kind: pipeline
|
||||
name: release a new recipe
|
||||
steps:
|
||||
- name: stack deploy
|
||||
- name: cut a new release of wordpress
|
||||
image: decentral1se/drone-abra:latest
|
||||
settings:
|
||||
command: recipe release
|
||||
cmd: recipe wordpress release
|
||||
deploy_key:
|
||||
from_secret: drone_deploy_key
|
||||
```
|
||||
|
|
|
@ -24,7 +24,7 @@ output_versions(){
|
|||
|
||||
run_abra_cmd() {
|
||||
echo "--- start deploy ---"
|
||||
abra --debug --no-prompt "$PLUGIN_COMMAND"
|
||||
abra --debug --no-prompt "$PLUGIN_CMD"
|
||||
echo "--- end deploy ---"
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ run_plugin() {
|
|||
echo "--- start drone-abra ---"
|
||||
load_deploy_key
|
||||
output_versions
|
||||
|
||||
run_abra_cmd
|
||||
echo "--- end drone-abra ---"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue