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