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