Make CI faster #57

Merged
lx merged 1 commit from trinity-1686a/garage:improve-ci into main 2021-04-08 17:55:11 +00:00
Showing only changes of commit 992284d545 - Show all commits

View file

@ -5,9 +5,16 @@ name: default
workspace: workspace:
base: /drone/garage base: /drone/garage
volumes:
- name: cargo_home
temp: {}
steps: steps:
- name: restore-cache - name: restore-cache
image: meltwater/drone-cache:dev image: meltwater/drone-cache:dev
volumes:
- name: cargo_home
path: /drone/cargo
environment: environment:
AWS_ACCESS_KEY_ID: AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id from_secret: cache_aws_access_key_id
@ -34,6 +41,9 @@ steps:
- name: build - name: build
image: rust:buster image: rust:buster
volumes:
- name: cargo_home
path: /drone/cargo
environment: environment:
CARGO_HOME: /drone/cargo CARGO_HOME: /drone/cargo
commands: commands:
@ -46,6 +56,9 @@ steps:
- name: cargo-test - name: cargo-test
image: rust:buster image: rust:buster
volumes:
- name: cargo_home
path: /drone/cargo
environment: environment:
CARGO_HOME: /drone/cargo CARGO_HOME: /drone/cargo
commands: commands:
@ -55,6 +68,9 @@ steps:
- name: rebuild-cache - name: rebuild-cache
image: meltwater/drone-cache:dev image: meltwater/drone-cache:dev
volumes:
- name: cargo_home
path: /drone/cargo
environment: environment:
AWS_ACCESS_KEY_ID: AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id from_secret: cache_aws_access_key_id
@ -81,6 +97,9 @@ steps:
- name: smoke-test - name: smoke-test
image: rust:buster image: rust:buster
volumes:
- name: cargo_home
path: /drone/cargo
environment: environment:
CARGO_HOME: /drone/cargo CARGO_HOME: /drone/cargo
commands: commands: