unnamed-crypto/.drone.yml
Jake Hillion 425189f022
All checks were successful
continuous-integration/drone/push Build is passing
Extracted build logic
2021-06-14 19:45:10 +01:00

60 lines
1.0 KiB
YAML

---
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:
- sh .build.sh
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.hillion.co.uk
files:
- target/release/linux_amd64.tar.gz
checksum:
- sha256
when:
event:
- tag
volumes:
- name: cache
temp: {}
---
kind: signature
hmac: d7c37edb0847754a42bb7ce0a5d1107690cd061201ac6e6154eef9845bbe0e80
...