Über Open CoDE Software Diskussionen Gitlab

Commit 3cd0a5f3 authored by Lyn Elisa Goltz's avatar Lyn Elisa Goltz
Browse files

Merge branch 'ensure-gitlab-release-for-tag' into 'main'

ensure gitlab release for tag but avoid build for release commit

See merge request !3
parents 92f2e7d6 7817297c
Pipeline #4171 passed with stages
in 31 seconds
......@@ -9,6 +9,8 @@ maven-build:
- 'echo "with Maven goal: $MAVEN_GOAL"'
- mvn $MAVEN_CLI_OPTS $MAVEN_GOAL
rules:
- if: $CI_COMMIT_MESSAGE =~ /^release /
when: never
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
variables:
MAVEN_GOAL: "install"
......@@ -31,7 +33,7 @@ maven-release:
- git config --global user.name "xplanung GitLab CI"
- git checkout -B "$CI_COMMIT_REF_NAME"
script:
- mvn release:prepare release:perform $MAVEN_CLI_OPTS -DscmReleaseCommitComment="[skip ci] prepare release @{releaseLabel}" -DtagNameFormat="v@{project.version}"
- mvn release:prepare release:perform $MAVEN_CLI_OPTS -DscmReleaseCommitComment="release @{releaseLabel}" -DtagNameFormat="v@{project.version}"
gitlab-release:
stage: deploy
......@@ -39,8 +41,8 @@ gitlab-release:
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Running the release job."
- echo "Running the release job for $CI_COMMIT_TAG"
release:
tag_name: $CI_COMMIT_TAG
name: 'Release $CI_COMMIT_TAG'
description: 'Release created using the release-cli.'
\ No newline at end of file
description: 'Release created using the release-cli.'
\ No newline at end of file
......@@ -17,6 +17,11 @@
<url>https://gitlab.opencode.de/xleitstelle/xplanung/validierungsregeln/standard/-/issues</url>
</issueManagement>
<scm>
<developerConnection>scm:git:git@gitlab.opencode.de:xleitstelle/xplanung/validierungsregeln/standard.git</developerConnection>
<tag>HEAD</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment