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

This commit is contained in:
Struchkov Mark 2022-12-18 06:45:38 +03:00
parent 7c3c100447
commit a4b8dbf77d

View File

@ -19,8 +19,10 @@ steps:
SSH_KEY:
from_secret: SSH_KEY
commands:
- mkdir -p /root/.ssh/
- echo "SSH_KEY" >> /root/.ssh/id_rsa
- eval $(ssh-agent -s)
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$GPG_PRIVATE_KEY" >> gpg.key
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key