Настройка сборки drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2022-12-17 13:32:13 +03:00
parent bd8db135bf
commit 44d4398ae4

View File

@ -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: