Use CMD and actually run it
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-06-03 20:56:34 +02:00
parent b12eeb548e
commit 4b4fea83f6
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 5 additions and 5 deletions

View File

@ -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
```

View File

@ -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 ---"
}