ipblc/.drone.yml
Paul Lecuq 85d85a4ae4
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone Build is passing
initial version of ipblc after blparser renaming
2022-05-27 13:59:17 +02:00

40 lines
896 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: test and build
image: rust:1
commands:
- apt-get update -y
- apt-get install -y libzmq3-dev libnftnl-dev libmnl-dev
- cargo build --verbose --all
- cargo test --verbose --all
when:
event: push
- name: release
image: rust:1
commands:
- apt-get update -y
- apt-get install -y libzmq3-dev libnftnl-dev libmnl-dev
- cargo build --release --verbose --all
- cd target/release
- tar -czvf ipblc-${DRONE_TAG}.tar.gz ipblc
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: ""
when:
event: tag