Handle SSH connections and assume folder exists
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a194c39704
commit
c274ddc4e1
@ -31,8 +31,11 @@ run_abra_cmd() {
|
|||||||
echo "Detected release command, attempting to detect recipe now..."
|
echo "Detected release command, attempting to detect recipe now..."
|
||||||
recipe=$(echo "$PLUGIN_COMMAND" | cut -d' ' -f2)
|
recipe=$(echo "$PLUGIN_COMMAND" | cut -d' ' -f2)
|
||||||
echo "Automagically detected $recipe as desired recipe repository, cloning now..."
|
echo "Automagically detected $recipe as desired recipe repository, cloning now..."
|
||||||
mkdir -p /root/.abra/apps
|
|
||||||
git clone "https://git.autonomic.zone/coop-cloud/$recipe.git" "/root/.abra/apps/$recipe"
|
git clone "https://git.autonomic.zone/coop-cloud/$recipe.git" "/root/.abra/apps/$recipe"
|
||||||
|
cd "/root/.abra/apps/$recipe" && \
|
||||||
|
git remote rm origin && \
|
||||||
|
git remote add origin "ssh://git@git.autonomic.zone:2222/coop-cloud/$recipe.git"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
Loading…
x
Reference in New Issue
Block a user