Fix CI auto-push
This commit is contained in:
parent
a8df29547c
commit
f757003a62
2 changed files with 4 additions and 1 deletions
|
|
@ -19,3 +19,6 @@ release:
|
|||
- gitlab-release --zip "release-${CI_COMMIT_TAG}.zip" *
|
||||
only:
|
||||
- tags
|
||||
- /^v-nightly-.*$/
|
||||
except:
|
||||
- schedules
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ git tag -a "v-productdb-$PRODUCTDB_VERSION" -m "Auto-release for STM32 Product D
|
|||
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 release
|
||||
git push --tags --force ci-origin HEAD:release
|
||||
else
|
||||
echo "No access token found. Not pushing anything."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue