AoC2021/.drone.yml
Julius c16ff1f9bc
All checks were successful
continuous-integration/drone/push Build is passing
Also cache target folder
2021-12-04 15:40:15 +01:00

52 lines
1 KiB
YAML

kind: pipeline
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
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
- target
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