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