Update URLs, use `host` option
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2021-08-16 19:46:22 +02:00
parent c4bedfb516
commit e2138e664d
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ set -e
ABRA=/root/.local/bin/abra
PLUGIN_BRANCH=${PLUGIN_BRANCH:-main}
PLUGIN_HOST=${PLUGIN_HOST:-git.autonomic.zone}
PLUGIN_HOST=${PLUGIN_HOST:-git.coopcloud.tech}
PLUGIN_PORT=${PLUGIN_PORT:-2222}
checkout_main_or_master() {
@ -37,10 +37,10 @@ run_abra_cmd() {
recipe=$(echo "$PLUGIN_COMMAND" | cut -d' ' -f2)
echo "Automagically detected $recipe as desired recipe repository, cloning now..."
git clone "https://git.autonomic.zone/coop-cloud/$recipe.git" "/root/.abra/apps/$recipe"
git clone "https://${PLUGIN_HOST}/coop-cloud/$recipe.git" "/root/.abra/apps/$recipe"
cd "/root/.abra/apps/$recipe" && checkout_main_or_master && \
git remote rm origin && \
git remote add origin "ssh://git@git.autonomic.zone:2222/coop-cloud/$recipe.git"
git remote add origin "ssh://git@${PLUGIN_HOST}:${PLUGIN_PORT}/coop-cloud/$recipe.git"
git push --set-upstream origin "$PLUGIN_BRANCH"
fi