add minor and major release jobs

This commit is contained in:
Johannes Loher 2021-01-09 18:47:20 +01:00
parent e99906a18a
commit 8301fb17fb

View file

@ -68,13 +68,11 @@ deploy:
- master
resource_group: production
release-patch:
.release-template: &release-template
stage: release
before_script:
- apt update
- apt install --yes jq
variables:
RELEASE_TYPE: patch
cache:
<<: *global_cache
script: |
@ -88,7 +86,7 @@ release-patch:
RELEASE_VERSION=$(jq -r '.version' < package.json)
git add package.json package-lock.json src/system.json
git --no-pager diff
git commit -m "release version ${VERSION}"
git commit -m "release version ${RELEASE_VERSION}"
git tag -f latest
git tag -f ${RELEASE_VERSION}
# git push origin ci-processing:${CI_BUILD_REF_NAME}
@ -97,3 +95,18 @@ release-patch:
# only:
# - master
when: manual
release-patch:
variables:
RELEASE_TYPE: patch
<<: *release-template
release-minor:
variables:
RELEASE_TYPE: patch
<<: *release-template
release-major:
variables:
RELEASE_TYPE: patch
<<: *release-template