v0.8.28 fix ci for release
This commit is contained in:
parent
d2bd450f2c
commit
ea0c9ac234
2 changed files with 6 additions and 8 deletions
|
@ -13,7 +13,7 @@ before_script:
|
||||||
- chmod +x gradlew
|
- chmod +x gradlew
|
||||||
- echo "------ commit tag ---------------"
|
- echo "------ commit tag ---------------"
|
||||||
- echo $CI_COMMIT_TAG
|
- echo $CI_COMMIT_TAG
|
||||||
- echo $SHELL
|
- echo $CI_COMMIT_REF_NAME
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -30,7 +30,7 @@ build:
|
||||||
- build/libs/*.jar
|
- build/libs/*.jar
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
.test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG == null # don't run for git tags
|
- if: $CI_COMMIT_TAG == null # don't run for git tags
|
||||||
|
@ -80,16 +80,13 @@ fatjars:
|
||||||
when: never
|
when: never
|
||||||
# Only execute when a valid version tag like v1.0, 2.3 or similar is given
|
# Only execute when a valid version tag like v1.0, 2.3 or similar is given
|
||||||
# Required is always one point like 1.0
|
# Required is always one point like 1.0
|
||||||
- if: $CI_COMMIT_REF_NAME == "master" # && $CI_COMMIT_TAG =~ /^v?[0-9]+[.][0-9]+([.][0-9]+)?$/
|
- if: $CI_COMMIT_TAG =~ /^v[0-9]+[.][0-9]+([.][0-9]+)?$/
|
||||||
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.
|
||||||
- echo FATJAR_JOB_ID=$CI_JOB_ID >> generate_executables.env
|
- echo FATJAR_JOB_ID=$CI_JOB_ID >> generate_executables.env
|
||||||
script:
|
script:
|
||||||
- echo "---------- create fatjar ----------"
|
- echo "---------- create fatjar ----------"
|
||||||
- echo $CI_COMMIT_TAG
|
|
||||||
- echo "$CI_COMMIT_TAG"
|
|
||||||
- echo '$CI_COMMIT_TAG'
|
|
||||||
- ./gradlew fatJarLatest
|
- ./gradlew fatJarLatest
|
||||||
- ./gradlew fatJarK3s
|
- ./gradlew fatJarK3s
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -111,7 +108,7 @@ release:
|
||||||
when: never
|
when: never
|
||||||
# Only execute when a valid version tag like v1.0, 2.3 or similar is given
|
# Only execute when a valid version tag like v1.0, 2.3 or similar is given
|
||||||
# Required is always one point like 1.0
|
# Required is always one point like 1.0
|
||||||
- if: $CI_COMMIT_REF_NAME == "master" #&& $CI_COMMIT_TAG =~ /^v?[0-9]+[.][0-9]+([.][0-9]+)?$/
|
- if: $CI_COMMIT_TAG =~ /^v[0-9]+[.][0-9]+([.][0-9]+)?$/
|
||||||
needs:
|
needs:
|
||||||
- job: fatjars
|
- job: fatjars
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
@ -120,6 +117,7 @@ release:
|
||||||
- echo '------------ creating a release -------------'
|
- echo '------------ creating a release -------------'
|
||||||
- echo 'Fatjar Job ID:'
|
- echo 'Fatjar Job ID:'
|
||||||
- echo $FATJAR_JOB_ID
|
- echo $FATJAR_JOB_ID
|
||||||
|
- echo $CI_COMMIT_TAG
|
||||||
release:
|
release:
|
||||||
name: 'Release $CI_COMMIT_TAG'
|
name: 'Release $CI_COMMIT_TAG'
|
||||||
description: 'Release of provs'
|
description: 'Release of provs'
|
||||||
|
|
|
@ -18,7 +18,7 @@ apply plugin: 'kotlinx-serialization'
|
||||||
|
|
||||||
|
|
||||||
group = 'org.domaindrivenarchitecture.provs'
|
group = 'org.domaindrivenarchitecture.provs'
|
||||||
version = '0.8.26'
|
version = '0.8.28'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
Loading…
Reference in a new issue