From a41bac7d1d613433ec7d3a384f96ad05b1637055 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Wed, 18 Sep 2019 12:58:36 -0300 Subject: [PATCH] add options and target, basic doc --- README.md | 19 ++++++++++++++++++- script.sh | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) 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/,/ }