chore(gitlab-ci): separate release-test command and tags

This commit is contained in:
Sarah Vaupel 2023-07-15 12:13:22 +00:00
parent 904f07a0b6
commit 1254e95fce
2 changed files with 4 additions and 3 deletions

View File

@ -239,7 +239,7 @@ container:
retry: 2 retry: 2
interruptible: true interruptible: true
rules: &release-rules rules: &release-rules
- if: $CI_COMMIT_TAG =~ /^v/ && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_TAG =~ /^v/
test container: test container:
stage: container:build stage: container:build
script: script:
@ -268,7 +268,7 @@ test container:
retry: 2 retry: 2
interruptible: true interruptible: true
rules: &test-release-rules rules: &test-release-rules
- if: $CI_COMMIT_TAG =~ /^v/ && $CI_COMMIT_BRANCH == "test" - if: $CI_COMMIT_TAG =~ /^t/
parse changelog: parse changelog:
stage: prepare release stage: prepare release
@ -376,7 +376,7 @@ test release:
- echo "Will create test release ${VERSION}..." - echo "Will create test release ${VERSION}..."
release: release:
name: "${VERSION}-test" name: "${VERSION}-test"
tag_name: "${CI_COMMIT_TAG}-test" tag_name: '$CI_COMMIT_TAG'
description: .current-changelog.md description: .current-changelog.md
needs: needs:
- job: check # sanity - job: check # sanity

View File

@ -25,6 +25,7 @@
"i18n:test": "./missing-translations.sh", "i18n:test": "./missing-translations.sh",
"prerelease": "./is-clean.sh && npm run test", "prerelease": "./is-clean.sh && npm run test",
"release": "standard-version -a", "release": "standard-version -a",
"release-test": "standard-version -a -t t",
"postrelease": "git push --follow-tags origin master", "postrelease": "git push --follow-tags origin master",
"parse-changelog": "changelog-parser ./CHANGELOG.md > changelog.json" "parse-changelog": "changelog-parser ./CHANGELOG.md > changelog.json"
}, },