Handle the branch dance
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-06-03 21:59:03 +02:00
parent c274ddc4e1
commit d9ede0ea0d
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ run_abra_cmd() {
cd "/root/.abra/apps/$recipe" && \
git remote rm origin && \
git remote add origin "ssh://git@git.autonomic.zone:2222/coop-cloud/$recipe.git"
git checkout main && git push --set-upstream origin main > /dev/null 2>&1 || \
git checkout master && git push --set-upstream origin master > /dev/null 2>&1
fi
# shellcheck disable=SC2086