Убрал .gitlab-ci.yml
This commit is contained in:
parent
020f108f07
commit
0a175d9c0b
20
.drone.yml
20
.drone.yml
@ -4,25 +4,7 @@ name: haiti-framework
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: publish external bom
|
- name: publish maven central
|
||||||
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
|
|
||||||
image: maven:3.8.6-openjdk-11
|
image: maven:3.8.6-openjdk-11
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
|
@ -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'
|
|
Loading…
Reference in New Issue
Block a user