From d1168e0833ce513dc6011f2e2f9e9366bf4d52bf Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 18 Dec 2022 06:15:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20ss?= =?UTF-8?q?h=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 063cac5..76fce75 100644 --- a/.drone.yml +++ b/.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