chore(gitlab-ci): test release

This commit is contained in:
Sarah Vaupel 2023-07-15 12:00:44 +00:00
parent fbf58f5aec
commit 904f07a0b6

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/ - if: $CI_COMMIT_TAG =~ /^v/ && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
test container: test container:
stage: container:build stage: container:build
script: script:
@ -366,3 +366,20 @@ release:
artifacts: false artifacts: false
- job: parse changelog - job: parse changelog
artifacts: true artifacts: true
test release:
variables:
GIT_STRATEGY: none
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules: *test-release-rules
script:
- echo "Will create test release ${VERSION}..."
release:
name: "${VERSION}-test"
tag_name: "${CI_COMMIT_TAG}-test"
description: .current-changelog.md
needs:
- job: check # sanity
artifacts: false
- job: parse changelog
artifacts: true