Update .gitlab-ci.yml file
This commit is contained in:
parent
1477981207
commit
68d2f2977c
@ -2,7 +2,7 @@ image: openjdk:17-jdk-slim
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- release_job
|
- release
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# - echo `pwd` # debug
|
# - echo `pwd` # debug
|
||||||
@ -26,7 +26,7 @@ build:
|
|||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
release_job:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
needs:
|
needs:
|
||||||
@ -37,7 +37,7 @@ release_job:
|
|||||||
when: never # Do not run this job when a tag is created manually
|
when: never # Do not run this job when a tag is created manually
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
||||||
script:
|
script:
|
||||||
- echo "running release_job for $TAG"
|
- echo "running release for $TAG"
|
||||||
release:
|
release:
|
||||||
name: 'Release $TAG'
|
name: 'Release $TAG'
|
||||||
description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG
|
description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG
|
||||||
|
Reference in New Issue
Block a user