Убрал .gitlab-ci.yml

This commit is contained in:
Struchkov Mark 2022-12-17 16:31:20 +03:00
parent 020f108f07
commit 0a175d9c0b
2 changed files with 1 additions and 36 deletions

View File

@ -4,25 +4,7 @@ name: haiti-framework
steps:
- name: publish external bom
image: maven:3.8.6-openjdk-11
volumes:
- name: m2
path: /root/.m2/repository
environment:
GPG_PRIVATE_KEY:
from_secret: GPG_PRIVATE_KEY
MAVEN_SETTINGS:
from_secret: MAVEN_SETTINGS
GPG_PASSPHRASE:
from_secret: GPG_PASSPHRASE
commands:
- echo "$GPG_PRIVATE_KEY" >> gpg.key
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
- name: publish
- name: publish maven central
image: maven:3.8.6-openjdk-11
volumes:
- name: m2

View File

@ -1,17 +0,0 @@
image: maven:3.8.4-openjdk-11
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'