Add drone caching
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

pull/1/head
Julius 2021-12-04 14:34:05 +01:00
parent 1418f18cab
commit eddcca849c
Signed by: j00lz
GPG Key ID: AF241B0AA237BBA2
1 changed files with 39 additions and 1 deletions

View File

@ -3,10 +3,48 @@ type: kubernetes
name: default
steps:
- name: restore
image: plugins/s3-cache
settings:
pull: true
endpoint: https://s3.voidcorp.nl
access_key:
from_secret: s3accesskey
secret_key:
from_secret: s3secretkey
restore: true
- name: test
image: rust:1.56
environment:
CARGO_HOME: ./.cargo_home
CARGO_HOME: .cargo_home
commands:
- cargo build --verbose --all
- cargo test --verbose --all
- name: rebuild
image: plugins/s3-cache
settings:
pull: true
endpoint: https://s3.voidcorp.nl
access_key:
from_secret: s3accesskey
secret_key:
from_secret: s3secretkey
rebuild: true
mount:
- .cargo_home
when:
event: push
- name: flush
image: plugins/s3-cache
settings:
pull: true
endpoint: https://s3.voidcorp.nl
access_key:
from_secret: s3accesskey
secret_key:
from_secret: s3secretkey
flush: true
flush_age: 14