Compare commits

...

2 Commits

Author SHA1 Message Date
da4b053d35 Добавил ssh key
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-12-18 06:15:54 +03:00
d1168e0833 Добавил ssh key 2022-12-18 06:15:33 +03:00

View File

@ -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
@ -16,10 +27,7 @@ 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