From 7ab2e65490a9d437bf44e89553dcdbd0dcfafc86 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Thu, 21 Jan 2021 12:00:51 +0800 Subject: [PATCH] update at 2021-01-21 12:00:51 by ehlxr --- .drone.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0cc0ca2..9ec8818 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,9 @@ workspace: steps: - name: build image: maven + volumes: + - name: m2_cache # The Volume's name + path: /root/.m2 # The path in the container commands: - mvn clean install -DskipTests -e -U - cp ./did-server/target/did-server*.jar ./docker @@ -17,7 +20,7 @@ steps: image: plugins/docker settings: repo: docker.ehlxr.me/ehlxr/did-server - dockerfile: ./did-server/docker/build/Dockerfile + dockerfile: ./docker/Dockerfile registry: docker.ehlxr.me username: from_secret: docker_username @@ -49,3 +52,8 @@ steps: status: - failure - success + +volumes: + - name: m2_cache # The name use in this pipeline, + host: + path: /m2_cache # The path be used in the host. \ No newline at end of file