unnamed-crypto/.drone.yml

60 lines
1020 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: default
steps:
- name: format
image: rust:1.52
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
- name: vendor
image: rust:1.52
volumes:
- name: cache
path: /vendor
commands:
- mkdir .cargo
- cargo vendor /vendor > .cargo/config
- name: test
image: rust:1.52
volumes:
- name: cache
path: /vendor
commands:
- cargo test
- name: build
image: rust:1.52
volumes:
- name: cache
path: /vendor
commands:
- cargo build --release
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.hillion.co.uk
files:
- target/release/plot
checksum:
- sha256
when:
event:
- tag
volumes:
- name: cache
temp: {}
---
kind: signature
hmac: d7c37edb0847754a42bb7ce0a5d1107690cd061201ac6e6154eef9845bbe0e80
...