aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-04-08 16:51:56 +0200
committerAlex Auvolat <alex@adnab.me>2021-04-27 16:37:11 +0200
commit12738029940f005aa28b150f600069603f910c2f (patch)
tree6e917a26c28b1759c99c5fedae3776252c7ea38a
parent4af39ab47ad13587a9406104cb4298aff79df6d6 (diff)
downloadgarage-12738029940f005aa28b150f600069603f910c2f.tar.gz
garage-12738029940f005aa28b150f600069603f910c2f.zip
use volume for cargo home
so it gets preserved between steps, and registry download is done only once
-rw-r--r--.drone.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 822f2e42..97af6319 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -5,9 +5,16 @@ name: default
workspace:
base: /drone/garage
+volumes:
+- name: cargo_home
+ temp: {}
+
steps:
- name: restore-cache
image: meltwater/drone-cache:dev
+ volumes:
+ - name: cargo_home
+ path: /drone/cargo
environment:
AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id
@@ -34,6 +41,9 @@ steps:
- name: build
image: rust:buster
+ volumes:
+ - name: cargo_home
+ path: /drone/cargo
environment:
CARGO_HOME: /drone/cargo
commands:
@@ -46,6 +56,9 @@ steps:
- name: cargo-test
image: rust:buster
+ volumes:
+ - name: cargo_home
+ path: /drone/cargo
environment:
CARGO_HOME: /drone/cargo
commands:
@@ -55,6 +68,9 @@ steps:
- name: rebuild-cache
image: meltwater/drone-cache:dev
+ volumes:
+ - name: cargo_home
+ path: /drone/cargo
environment:
AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id
@@ -81,6 +97,9 @@ steps:
- name: smoke-test
image: rust:buster
+ volumes:
+ - name: cargo_home
+ path: /drone/cargo
environment:
CARGO_HOME: /drone/cargo
commands: