Compare commits

...

3 commits

Author SHA1 Message Date
Julius eddcca849c
Add drone caching
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2021-12-04 14:34:05 +01:00
Julius 1418f18cab
Fix ci config
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-04 14:26:30 +01:00
Julius e0031edb5e
Add cargo caching 2021-12-04 14:25:46 +01:00

View file

@ -3,8 +3,48 @@ type: kubernetes
name: default name: default
steps: 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 - name: test
image: rust:1.56 image: rust:1.56
environment:
CARGO_HOME: .cargo_home
commands: commands:
- cargo build --verbose --all - cargo build --verbose --all
- cargo test --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