2021-12-01 20:53:49 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2021-12-04 14:34:05 +01:00
|
|
|
- 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
|
|
|
|
|
2021-12-01 20:53:49 +01:00
|
|
|
- name: test
|
|
|
|
image: rust:1.56
|
2021-12-04 14:25:46 +01:00
|
|
|
environment:
|
2021-12-04 14:34:05 +01:00
|
|
|
CARGO_HOME: .cargo_home
|
2021-12-01 20:53:49 +01:00
|
|
|
commands:
|
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2021-12-04 14:34:05 +01:00
|
|
|
|
|
|
|
- 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
|