From debb38b9c26e74c6f3024fadd1ccc05b8ebddce9 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Thu, 2 Apr 2020 21:24:58 +0200 Subject: [PATCH] refactor: add cache volume for cargo --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index a5762a9..39a17fd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,6 +13,8 @@ steps: volumes: - name: cache path: /cache + - name: cargo-cache + path: /home/rust/.cargo settings: restore: true mount: @@ -30,6 +32,8 @@ steps: volumes: - name: cache path: /cache + - name: cargo-cache + path: /home/rust/.cargo settings: rebuild: true mount: @@ -41,6 +45,9 @@ volumes: - name: cache host: path: /tmp/cache + - name: cargo-cache + host: + path: /tmp/cargo-cache trigger: event: @@ -57,6 +64,22 @@ trigger: --- kind: pipeline type: docker +name: production + +platform: + os: linux + arch: amd64 + +steps: +- name: release + image: joseluisq/rust-linux-darwin-builder:1.41.1 + commands: + - make test + + +--- +kind: pipeline +type: docker name: notification platform: -- libgit2 1.7.2