[skip-ci] create releases only on master branch
This commit is contained in:
parent
d2ab1d28bd
commit
caaab02b7c
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,9 @@ fatjar:
|
||||||
stage: fatjar
|
stage: fatjar
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
before_script:
|
before_script:
|
||||||
- echo $CI_JOB_ID
|
- echo $CI_JOB_ID
|
||||||
# Writing FATJAR_JOB_ID variable to environment file, as variable is needed in the release stage.
|
# Writing FATJAR_JOB_ID variable to environment file, as variable is needed in the release stage.
|
||||||
|
@ -92,6 +95,9 @@ release:
|
||||||
stage: release
|
stage: release
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG # Run this job when a git tag is created manually
|
- if: $CI_COMMIT_TAG # Run this job when a git tag is created manually
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
needs:
|
needs:
|
||||||
- job: fatjar
|
- job: fatjar
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
Loading…
Reference in a new issue