From b5fa479f47fbe305c16c68510428f3bb29ede8fc Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 17 Dec 2022 15:54:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20drone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3d35982..056218b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,16 +3,30 @@ type: docker name: haiti-framework steps: - - name: build - image: node + + - name: publish + image: maven:3.8.6-openjdk-11 volumes: - - name: cache - path: /tmp/cache + - name: m2 + path: /root/.m2/repository + environment: + GPG_PRIVATE_KEY: + from_secret: GPG_PRIVATE_KEY + MAVEN_SETTINGS: + from_secret: MAVEN_SETTINGS + GPG_PASSPHRASE: + from_secret: GPG_PASSPHRASE commands: - - npm install - - npm test + - echo "$GPG_PRIVATE_KEY" >> gpg.key + - echo "$MAVEN_SETTINGS" >> maven-settings.xml + - gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key + - mvn --settings maven-settings.xml -U -P ossrh,release clean deploy + +trigger: +# ref: +# - refs/tags/v.*.*.* volumes: - - name: cache + - name: m2 host: - path: /var/lib/cache \ No newline at end of file + path: $${PATH_MAVEN_M2} \ No newline at end of file