Skip to content
Snippets Groups Projects
Commit 9475c424 authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

changes for semantic version to start with v

parent 28699202
No related branches found
No related tags found
No related merge requests found
Pipeline #157429 passed
......@@ -32,6 +32,7 @@ include:
release-disabled: false
semantic-release-job-tags: ["docker"]
branches-ref: "/^(master|main)$/"
tag-format: "$$v{version}"
# sonar template
- component: "$CI_SERVER_FQDN/$TBC_NAMESPACE/sonar/gitlab-ci-sonar@master"
inputs:
......
......@@ -11,15 +11,16 @@ plugins:
- - semantic-release-replace-plugin
- replacements:
- files:
- cmd/config.yaml
- main.go
from:
- 'version: *\d+\.\d+\.\d+'
to: 'version: ${nextRelease.version}'
- 'version = "v\d+\.\d+\.\d+-dev"'
to: 'version = "${nextRelease.version}-dev"'
countMatches: true
# git commit/push modified files (CHANGELOG.md & pyproject.toml)
- - '@semantic-release/git'
- assets:
- cmd/config.yaml
- main.go
- '*.md'
# the commit MUST trigger a pipeline on tag (to perform publish jobs)
# can be skipped on prod branch
message: 'chore(semantic-release): release ${nextRelease.version} - [ci skip on prod]'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment