From 30d46c56b974a7a97ebd6d2526c6c6578718aea8 Mon Sep 17 00:00:00 2001 From: zeekling Date: Tue, 3 May 2022 00:30:57 +0800 Subject: [PATCH 1/5] support drone --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3781a12 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: install + image: alpine + commands: + - mvn install + -- 2.45.2 From d3a78d414aac23a00ea00a1bf270f5e5350952d3 Mon Sep 17 00:00:00 2001 From: zeekling Date: Tue, 3 May 2022 00:35:25 +0800 Subject: [PATCH 2/5] support drone --- .drone.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3781a12..beb459f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,8 +3,15 @@ type: docker name: default steps: -- name: install - image: alpine +- name: build + image: maven + volumes: + - name: cache + path: /root/.m2 commands: - - mvn install + - mvn clean install -DskipTests +volumes: + - name: cache # The name use in this pipeline, + host: + path: /var/lib/cache # The path be used in the host. -- 2.45.2 From 9a70b76324d78657a3e667adf1e280d2d1862365 Mon Sep 17 00:00:00 2001 From: zeekling Date: Tue, 3 May 2022 00:36:39 +0800 Subject: [PATCH 3/5] support drone --- .drone.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index beb459f..0d9ffdc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,3 @@ steps: commands: - mvn clean install -DskipTests -volumes: - - name: cache # The name use in this pipeline, - host: - path: /var/lib/cache # The path be used in the host. -- 2.45.2 From a04540e6f2dd93e231871b3e3b39bd8455f635d1 Mon Sep 17 00:00:00 2001 From: zeekling Date: Tue, 3 May 2022 00:39:34 +0800 Subject: [PATCH 4/5] support drone --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index 0d9ffdc..e44ac4e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,3 +11,9 @@ steps: commands: - mvn clean install -DskipTests +trigger: + branch: + - master + event: + - pull_request + - push -- 2.45.2 From 46a0faca8a8ec785a4c37590621fd64d1ffd049e Mon Sep 17 00:00:00 2001 From: zeekling Date: Tue, 3 May 2022 00:50:30 +0800 Subject: [PATCH 5/5] support drone --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index e44ac4e..7639959 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,3 +17,8 @@ trigger: event: - pull_request - push + +volumes: + - name: cache + host: + path: /root/.m2 -- 2.45.2