Изменение cicd
This commit is contained in:
parent
73c36441e6
commit
a4731bd535
38
.drone.yml
38
.drone.yml
@ -30,7 +30,7 @@ steps:
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: release-publish
|
||||
name: release-maven-central
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
@ -61,10 +61,44 @@ steps:
|
||||
- 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
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: release-struchkov-nexus
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/v.*.*.*
|
||||
|
||||
volumes:
|
||||
- name: m2
|
||||
host:
|
||||
path: /drone/volume/m2
|
||||
|
||||
steps:
|
||||
|
||||
- name: publish maven central
|
||||
image: maven:3.8.5-openjdk-17
|
||||
privileged: true
|
||||
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 release-struchkov-nexus clean deploy
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: aaecb82da560b249aa3db9c370d61eedc48517dc2859e3f157bc30c2275d1217
|
||||
hmac: debf5624439f00ad94ba1b1dc172034ccf94c2048ee5ea003540a18623c8c635
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user