Skip to content
Snippets Groups Projects
Commit c1b501c6 authored by david.bauer's avatar david.bauer :fire:
Browse files

Add release-it workflow

parent 5b07b606
No related branches found
No related tags found
No related merge requests found
include:
- project: 'sre/ci-building-blocks'
file: '/gitlab-ci/node/kaniko.yml'
ref: '2.0.0'
variables:
INGRESS_HOSTNAME: ui-middleware-$CI_COMMIT_REF_SLUG
build image:
before_script:
- "[ -z \"$APP_VERSION\" ] && export APP_VERSION=$CI_COMMIT_TAG"
- "[ -z \"$APP_VERSION\" ] && export APP_VERSION=$(cat package.json | grep 'version' | cut -f 4 -d'\"')"
- echo "Building version $APP_VERSION"
extends: .build image
deploy helm chart:
extends: .auto-deploy-helm-chart
environment:
......
{
"npm": { "publish": false },
"gitlab": { "release": true },
"plugins": {
"@release-it/keep-a-changelog": {
"addVersionUrl": true,
"addUnreleased": true,
"head": "main"
},
"@j-ulrich/release-it-regex-bumper": {
"out": [
{
"file": "helm/core-ui-middleware/Chart.yaml",
"search": "appVersion: \"\\d+\\.\\d+\\.\\d+\"",
"replace": "appVersion: \"{{version}}\""
}
]
}
}
}
# Changelog
All notable changes to this project will be documented in this file.
## [Unreleased]
......@@ -9,7 +9,10 @@
"start": "node src/index.js",
"dev": "nodemon index.js",
"prepare": "husky install",
"test": "LOG_LEVEL=error NODE_OPTIONS=--experimental-vm-modules jest --no-cache"
"test": "LOG_LEVEL=error NODE_OPTIONS=--experimental-vm-modules jest --no-cache",
"release-chart": "cd helm/ui-middleware/ && npx --package=@open-xchange/release-it -- release-it",
"release-app": "npx --package=@open-xchange/release-it -- release-it",
"release": "yarn release-chart && yarn release-app"
},
"author": "Open-Xchange",
"license": "CC-BY-NC-SA-2.5",
......
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