42 lines
644 B
YAML
42 lines
644 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
name: compliance
|
||
|
type: docker
|
||
|
|
||
|
trigger:
|
||
|
event:
|
||
|
- pull_request
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
pull: always
|
||
|
image: rust:1.46.0
|
||
|
commands:
|
||
|
- cargo build --verbose
|
||
|
|
||
|
---
|
||
|
kind: pipeline
|
||
|
name: release
|
||
|
type: docker
|
||
|
|
||
|
trigger:
|
||
|
branch:
|
||
|
- master
|
||
|
event:
|
||
|
- push
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
pull: always
|
||
|
image: rust:1.46.0
|
||
|
commands:
|
||
|
- cargo build --verbose --release
|
||
|
- name: gitea-release
|
||
|
pull: always
|
||
|
image: jolheiser/drone-gitea-main:latest
|
||
|
settings:
|
||
|
token:
|
||
|
from_secret: gitea_token
|
||
|
base: https://git.etztech.xyz
|
||
|
files:
|
||
|
- "target/release/albatross"
|