From 98e0825c69a66e367570cf1259d02d7a573092a4 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 17 Dec 2022 12:48:39 +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 | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3755c78..a6dc3cb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,38 +4,14 @@ name: haiti-framework steps: - - name: restore-cache - image: drillster/drone-volume-cache - volumes: - - name: m2 - path: /cache - settings: - restore: true - mount: - - /root/.m2 - - name: publish image: maven:3.8.6-eclipse-temurin-17 commands: - - mvn -U clean package - - - name: rebuild-cache - image: drillster/drone-volume-cache - volumes: - - name: m2 - path: /cache - settings: - rebuild: true - mount: - - /root/.m2 - -volumes: - - name: m2 - host: - path: ${PATH_MAVEN_M2} + - echo "$GPG_PRIVATE_KEY" >> "gpg.txt" + - echo "$MAVEN_SETTINGS" >> "maven-settings.xml" + - gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.txt + - mvn --settings maven-settings.xml -U -P ossrh,release clean deploy trigger: - branch: - - master # ref: # - refs/tags/v.*.*.* \ No newline at end of file