Skip to content

Commit

Permalink
Merge branch 'brousek/semantic_release_rules' into 'main'
Browse files Browse the repository at this point in the history
ci: run semantic release on maintenance branches

See merge request perun/perun-idm/perun-wui!268
  • Loading branch information
Bc. Jakub Hejda committed Dec 11, 2023
2 parents 7827c4d + 01694dd commit 2c71ea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ include:
- project: perun/common
file: /templates/.gitlab-ci-template.yml

# run on production branch instead of main
# use same rules as in .releaserc.json
semantic-release:
rules:
- if: '$CI_COMMIT_REF_NAME == "production" && $CI_PIPELINE_SOURCE != "schedule"'
- if: '$CI_COMMIT_REF_NAME =~ /^[0-9]+(\.([0-9]+|x))?\.x$/ && $CI_PIPELINE_SOURCE != "schedule"'

maven-build:
image: $CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX/maven:3-openjdk-17
Expand Down
10 changes: 1 addition & 9 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
{
"branches": [
"production",
"+([0-9])?(.{+([0-9]),x}).x",
{
"name": "alpha",
"prerelease": true
},
{
"name": "beta",
"prerelease": true
}
"+([0-9])?(.{+([0-9]),x}).x"
],
"preset": "conventionalcommits",
"extends": "@semantic-release/gitlab-config",
Expand Down

0 comments on commit 2c71ea7

Please sign in to comment.