This commit is contained in:
parent
a44a2f3535
commit
f4b4d81b10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user