Добавил ssh key
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2022-12-18 06:18:33 +03:00
parent da4b053d35
commit b2f0f0f33a

View File

@ -6,14 +6,6 @@ clone:
disable: true
steps:
- name: clone
environment:
SSH_KEY:
from_secret: SSH_KEY
commands:
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
- git clone ssh://git@git.struchkov.dev:222/Godfather-Bots/godfather.git .
- git checkout $DRONE_COMMIT
- name: publish maven central
image: maven:3.8.5-openjdk-17
@ -27,7 +19,10 @@ steps:
from_secret: MAVEN_SETTINGS
GPG_PASSPHRASE:
from_secret: GPG_PASSPHRASE
SSH_KEY:
from_secret: SSH_KEY
commands:
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
- echo "$GPG_PRIVATE_KEY" >> gpg.key
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key