diff --git a/README.md b/README.md index 2543417..38ef870 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 -- **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 ``` diff --git a/plugin.sh b/plugin.sh index 0cf0c8c..06e4073 100755 --- a/plugin.sh +++ b/plugin.sh @@ -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 ---" }