Добавил ssh key
This commit is contained in:
parent
d54ef69aff
commit
d1168e0833
13
.drone.yml
13
.drone.yml
@ -2,7 +2,18 @@ kind: pipeline
|
||||
type: docker
|
||||
name: haiti-framework
|
||||
|
||||
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
|
||||
@ -19,7 +30,7 @@ steps:
|
||||
SSH_KEY:
|
||||
from_secret: SSH_KEY
|
||||
commands:
|
||||
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
|
||||
- echo "$SSH_KEY" >> /root/.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
|
||||
|
Loading…
Reference in New Issue
Block a user