Get the recipe if it is release time
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-06-03 21:44:09 +02:00
parent 05eef4a8c8
commit ca89a3a79e
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 11 additions and 2 deletions

View File

@ -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() {