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

This commit is contained in:
Struchkov Mark 2022-12-18 06:20:36 +03:00
parent a44a2f3535
commit f4b4d81b10

View File

@ -19,7 +19,12 @@ steps:
SSH_KEY:
from_secret: SSH_KEY
commands:
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
- eval $(ssh-agent -s)
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- chmod 644 ~/.ssh/known_hosts
- echo "$GPG_PRIVATE_KEY" >> gpg.key
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key