Added .drone.yml
This commit is contained in:
parent
8624b802e7
commit
f7fd62c571
60
.drone.yml
Normal file
60
.drone.yml
Normal file
@ -0,0 +1,60 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: format
|
||||
image: rust:1.51
|
||||
commands:
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt --all -- --check
|
||||
|
||||
- name: vendor
|
||||
image: rust:1.51
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /vendor
|
||||
commands:
|
||||
- mkdir .cargo
|
||||
- cargo vendor /vendor > .cargo/config
|
||||
|
||||
- name: test
|
||||
image: rust:1.51
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /vendor
|
||||
commands:
|
||||
- cargo test
|
||||
|
||||
- name: build
|
||||
image: rust:1.51
|
||||
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: 4d96819ad262a0b9ba8254a3918f477a95d7930d7c893b3109da5020a9c53486
|
||||
|
||||
...
|
Loading…
Reference in New Issue
Block a user