From 2e0da4f29fb4ba6c016e672598c5ebd6d17bdd20 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 17 Dec 2022 12:42:32 +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 | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0235359..cbdfff0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,21 +3,39 @@ type: docker name: haiti-framework steps: - - name: package - image: maven:3.8.6-eclipse-temurin-17 + + - name: restore-cache + image: drillster/drone-volume-cache volumes: - name: m2 - path: /root/.m2 + path: /m2 + settings: + restore: true + mount: + - /root/.m2 + + - name: publish + image: maven:3.8.6-eclipse-temurin-17 commands: - - mvn -Dmaven.repo.local=/drone/.m2/repository -U clean package + - mvn -U clean package + + - name: rebuild-cache + image: drillster/drone-volume-cache + volumes: + - name: m2 + path: /m2 + settings: + rebuild: true + mount: + - /root/.m2 + +volumes: + - name: m2 + host: + path: ${PATH_MAVEN_M2} trigger: branch: - master # ref: -# - refs/tags/v.*.*.* - -volumes: - - name: m2 - host: - path: ${PATH_MAVEN_M2} \ No newline at end of file +# - refs/tags/v.*.*.* \ No newline at end of file