Get the recipe if it is release time
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
05eef4a8c8
commit
ca89a3a79e
13
plugin.sh
13
plugin.sh
|
@ -25,10 +25,19 @@ output_versions(){
|
|||
}
|
||||
|
||||
run_abra_cmd() {
|
||||
echo "--- start deploy ---"
|
||||
echo "--- start command ---"
|
||||
|
||||
if [[ $PLUGIN_COMMAND == *"release"* ]]; then
|
||||
echo "Detected release command, attempting to detect recipe now..."
|
||||
repo=$(echo "$PLUGIN_COMMAND" | cut -d' ' -f2)
|
||||
echo "Automagically detected $repo as desired recipe repository, cloning now..."
|
||||
git clone "https://git.autonomic.zone/coop-cloud/$repo.git"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
$ABRA --debug --no-prompt $PLUGIN_COMMAND
|
||||
echo "--- end deploy ---"
|
||||
|
||||
echo "--- end command ---"
|
||||
}
|
||||
|
||||
run_plugin() {
|
||||
|
|
Loading…
Reference in New Issue