Настройка автоматический смены версий
This commit is contained in:
parent
7710e2b274
commit
3d59cb8989
@ -24,7 +24,7 @@ steps:
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/v.*.*.*
|
- master
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
image: maven:3.8.5-openjdk-17
|
|
||||||
variables:
|
|
||||||
MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
stage: deploy
|
|
||||||
only:
|
|
||||||
- /^v.*$/
|
|
||||||
except:
|
|
||||||
- branches
|
|
||||||
before_script:
|
|
||||||
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import $GPG_PRIVATE_KEY
|
|
||||||
script:
|
|
||||||
- 'mvn --settings $MAVEN_SETTINGS -U -P ossrh,release clean deploy'
|
|
2
pom.xml
2
pom.xml
@ -224,7 +224,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<preparationGoals>clean install</preparationGoals>
|
<preparationGoals>clean install</preparationGoals>
|
||||||
<tagNameFormat>v.@{project.version}</tagNameFormat>
|
<tagNameFormat>v.@{project.version}</tagNameFormat>
|
||||||
<releaseProfiles>releases</releaseProfiles>
|
<releaseProfiles>release,ossrh</releaseProfiles>
|
||||||
<pushChanges>false</pushChanges>
|
<pushChanges>false</pushChanges>
|
||||||
<localCheckout>true</localCheckout>
|
<localCheckout>true</localCheckout>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
Loading…
Reference in New Issue
Block a user