mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-22 16:11:01 +00:00
use volume for cargo home
so it gets preserved between steps, and registry download is done only once
This commit is contained in:
parent
7560a41ab1
commit
992284d545
1 changed files with 19 additions and 0 deletions
19
.drone.yml
19
.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:
|
||||
|
|
Loading…
Reference in a new issue