JakeHillion
4465770b8f
Co-authored-by: Jake Hillion <jake@hillion.co.uk> Reviewed-on: #1 Co-authored-by: JakeHillion <jake@hillion.co.uk> Co-committed-by: JakeHillion <jake@hillion.co.uk>
60 lines
1020 B
YAML
60 lines
1020 B
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:
|
|
- 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
|
|
|
|
...
|