This commit is contained in:
parent
bd8db135bf
commit
44d4398ae4
16
.drone.yml
16
.drone.yml
@ -7,14 +7,16 @@ steps:
|
|||||||
- name: publish
|
- name: publish
|
||||||
image: maven:3.8.4-openjdk-11
|
image: maven:3.8.4-openjdk-11
|
||||||
environment:
|
environment:
|
||||||
TEST:
|
GPG_PRIVATE_KEY:
|
||||||
from_secret: TEST
|
from_secret: GPG_PRIVATE_KEY
|
||||||
|
MAVEN_SETTINGS:
|
||||||
|
from_secret: MAVEN_SETTINGS
|
||||||
|
GPG_PASSPHRASE:
|
||||||
|
from_secret: GPG_PASSPHRASE
|
||||||
commands:
|
commands:
|
||||||
- echo ${GPG_PRIVATE_KEY} >> gpg.key
|
- echo $GPG_PRIVATE_KEY >> gpg.key
|
||||||
- echo $TEST >> test.key
|
- echo $MAVEN_SETTINGS >> maven-settings.xml
|
||||||
- cat test.key
|
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import 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
|
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
Loading…
Reference in New Issue
Block a user