Skip to content
Snippets Groups Projects
Commit fb892ef4 authored by Alen Zubic's avatar Alen Zubic
Browse files

feat: Add semantic release

parent b2425007
No related branches found
No related tags found
1 merge request!45feat: Add semantic release
Pipeline #127007 passed with warnings
...@@ -3,7 +3,17 @@ variables: ...@@ -3,7 +3,17 @@ variables:
IMAGE_TAG_HELM_FILE: "helm/staging/graphpolaris-frontend/values.yaml" IMAGE_TAG_HELM_FILE: "helm/staging/graphpolaris-frontend/values.yaml"
IMAGE_TAG_HELM_FILE_VARIABLE: "image.tag" IMAGE_TAG_HELM_FILE_VARIABLE: "image.tag"
stages:
- tag-release
- container-image
- deploy-staging
include: include:
# Release needs to happen before build-and-push, because build-and-push
# searches for a tag that contains the current commit SHA.
- project: 'graphpolaris/pipelines'
ref: main
file: 'semantic-release.yml'
- project: 'graphpolaris/pipelines' - project: 'graphpolaris/pipelines'
ref: main ref: main
file: 'docker-build-push.yml' file: 'docker-build-push.yml'
{
"branches": [
"master",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"dryRun": false,
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"successCmd": "echo ${nextRelease.version} > version.txt"
}
],
"@semantic-release/gitlab"
]
}
{
"dependencies": {
"semantic-release": "^21.0.0",
"@semantic-release/exec": "^6.0.0",
"@semantic-release/commit-analyzer": "^10.0.0",
"@semantic-release/gitlab": "^12.0.0",
"@semantic-release/release-notes-generator": "^11.0.0"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment