diff --git a/README.md b/README.md index 38ef870..2543417 100644 --- a/README.md +++ b/README.md @@ -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 -- **cmd**: The command to run (passed to `abra` executable) +- **command**: 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: cut a new release of wordpress + - name: stack deploy image: decentral1se/drone-abra:latest settings: - cmd: recipe wordpress release + command: recipe release deploy_key: from_secret: drone_deploy_key ``` diff --git a/plugin.sh b/plugin.sh index 06e4073..0cf0c8c 100755 --- a/plugin.sh +++ b/plugin.sh @@ -24,7 +24,7 @@ output_versions(){ run_abra_cmd() { echo "--- start deploy ---" - abra --debug --no-prompt "$PLUGIN_CMD" + abra --debug --no-prompt "$PLUGIN_COMMAND" 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 ---" }