This commit is contained in:
parent
9739dd895c
commit
f37fb7e3d8
50
.drone.yml
50
.drone.yml
@ -1,7 +1,11 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test and build
|
- name: test and build
|
||||||
@ -37,3 +41,47 @@ steps:
|
|||||||
PLUGIN_TITLE: ""
|
PLUGIN_TITLE: ""
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default-arm64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user