Настройка автоматический смены версий

This commit is contained in:
Struchkov Mark 2022-12-18 05:14:02 +03:00
parent 7710e2b274
commit 3d59cb8989
3 changed files with 2 additions and 19 deletions

View File

@ -24,7 +24,7 @@ steps:
trigger:
ref:
- refs/tags/v.*.*.*
- master
volumes:
- name: m2

View File

@ -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'

View File

@ -224,7 +224,7 @@
<configuration>
<preparationGoals>clean install</preparationGoals>
<tagNameFormat>v.@{project.version}</tagNameFormat>
<releaseProfiles>releases</releaseProfiles>
<releaseProfiles>release,ossrh</releaseProfiles>
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
</configuration>