do_release.sh: Make push logic more verbose

This commit is contained in:
jaseg 2020-11-18 14:09:58 +01:00
parent 1e656525ed
commit a8df29547c

View file

@ -17,7 +17,7 @@ TIMESTAMP=${TIMESTAMP:-$(date +%y-%m-%d)}
make clean all
git add svd mx_mcu_db prog_db chip_db
git commit --allow-empty -m "STM32Square Auto-Release $TIMESTAMP
git commit -q --allow-empty -m "STM32Square Auto-Release $TIMESTAMP
This is an automatic release commit. Generation was invoked from:
$RELEASE_TRIGGER
@ -67,6 +67,9 @@ git tag -a "v-productdb-$PRODUCTDB_BUILD" -m "Auto-release for STM32 Product Dat
git tag -a "v-productdb-$PRODUCTDB_VERSION" -m "Auto-release for STM32 Product Database version $PRODUCTDB_VERSION" || true
if [ ! -z ${GITLAB_ACCESS_TOKEN+x} ]; then
echo "Access token found, pushing commit and tags"
git remote add -f ci-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.com/${CI_PROJECT_PATH}
git push --tags --force ci-origin
git push --tags --force ci-origin release
else
echo "No access token found. Not pushing anything."
fi