Skip to content
Code-Schnipsel Gruppen Projekte
Commit c6a1270d erstellt von Jan Wennrich's avatar Jan Wennrich
Dateien durchsuchen

feat!: new major release

Übergeordneter 10f81687
No related branches found
No related tags found
1 Merge Request!113feat!: new major release
include:
- component: dev.quiqqer.com/quiqqer/stabilization/ci-cd-components/quiqqer-package-bundle/quiqqer-package-bundle@dev
stages:
- release
release:
stage: release
variables:
SEMANTIC_RELEASE_VERSION: "22.0.12"
image: toolhippie/semantic-release:${SEMANTIC_RELEASE_VERSION}
script:
- git config --global --add safe.directory $CI_PROJECT_DIR
- CURRENT_VERSION=$(git describe --abbrev=0 --tags | cut -c1 || echo "0.0.0")
- CURRENT_MAJOR_VERSION=$(echo ${CURRENT_VERSION} | cut -c1)
- if [ ! -e .releaserc.json ]; then (echo '
{"tagFormat":"${version}","branches":["+([0-9])?(.{+([0-9]),x}).x","master","main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],["@semantic-release/gitlab",{"gitlabUrl":"https://dev.quiqqer.com","assignee":"JanWennrich"}]]}
' > .releaserc.json); fi
- semantic-release
- RELEASED_MAJOR_VERSION=$(git describe --abbrev=0 --tags | cut -c1)
- if [ $CURRENT_MAJOR_VERSION -gt 0 ] && [ $RELEASED_MAJOR_VERSION -gt $CURRENT_MAJOR_VERSION ]; then (curl -v --request POST --header "PRIVATE-TOKEN:${GITLAB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/branches?branch=${CURRENT_MAJOR_VERSION}.x&ref=${CURRENT_VERSION}"); fi
rules:
# Execute for default branch (should be master/main) and for version branches ('n.x' or 'n.n.x', where n is a number)
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^(\d\.)?\d.x$/
\ No newline at end of file
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren