add minor and major release jobs
This commit is contained in:
parent
e99906a18a
commit
8301fb17fb
1 changed files with 17 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue