60 lines
1.0 KiB
YAML
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: 91ad5c3d608ca8d5d0eb9ed54277099436549ab20636a323e40b8ba81b5bc14a
|
|
|
|
...
|