diff --git a/README.md b/README.md index 0b477f2..bc4872b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ # drone-plugin-make -Drone plugin to run `make` command. \ No newline at end of file +Drone plugin to run `make` command. + +Usage example: + +``` +#... +steps: + - name: make + image: eumau/drone-plugin-make + settings: + targets: + - target1 + - target2 + options: + "-k" +``` + +Note that `options` should be provided as a string. diff --git a/script.sh b/script.sh index 60a5030..53f0a13 100644 --- a/script.sh +++ b/script.sh @@ -1,2 +1,2 @@ #!/bin/sh -make ${PLUGIN_OPTS} +make ${PLUGIN_OPTIONS} ${PLUGIN_TARGETS/,/ }