2022-02-16 17:48:24 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: rust:1
|
|
|
|
commands:
|
2022-03-11 23:43:16 +01:00
|
|
|
- apt-get update -y
|
|
|
|
- apt-get install libasound2-dev -y
|
2022-02-16 17:48:24 +01:00
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
|
|
|
- name: release
|
|
|
|
image: rust:1
|
|
|
|
commands:
|
2022-03-11 23:43:16 +01:00
|
|
|
- apt-get update -y
|
|
|
|
- apt-get install libasound2-dev -y
|
2022-02-16 17:48:24 +01:00
|
|
|
- cargo build --release --verbose --all
|
2022-03-26 12:07:33 +01:00
|
|
|
- cd target/release
|
|
|
|
- tar -czvf zabbixlaunch-${DRONE_TAG}.tar.gz zabbixlaunch
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
- name: publish
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.paulbsd.com
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files: "target/release/*.tar.gz"
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- sha512
|
|
|
|
environment:
|
|
|
|
PLUGIN_TITLE: ""
|
2022-02-16 17:48:24 +01:00
|
|
|
when:
|
|
|
|
event: tag
|