This commit is contained in:
parent
72b5916b56
commit
46d38fe318
44
.drone.yml
44
.drone.yml
@ -15,8 +15,14 @@ steps:
|
|||||||
- apt-get install -y libzmq3-dev libnftnl-dev libmnl-dev
|
- apt-get install -y libzmq3-dev libnftnl-dev libmnl-dev
|
||||||
- cargo build --verbose --all
|
- cargo build --verbose --all
|
||||||
- cargo test --verbose --all
|
- cargo test --verbose --all
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
path: /usr/local/cargo/registry
|
||||||
|
- name: apt
|
||||||
|
path: /var/cache/apt
|
||||||
when:
|
when:
|
||||||
event: push
|
event:
|
||||||
|
- push
|
||||||
- name: release
|
- name: release
|
||||||
image: rust:1
|
image: rust:1
|
||||||
commands:
|
commands:
|
||||||
@ -25,8 +31,14 @@ steps:
|
|||||||
- cargo build --release --verbose --all
|
- cargo build --release --verbose --all
|
||||||
- cd target/release
|
- cd target/release
|
||||||
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
|
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
path: /usr/local/cargo/registry
|
||||||
|
- name: apt
|
||||||
|
path: /var/cache/apt
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
- tag
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
@ -40,7 +52,15 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
PLUGIN_TITLE: ""
|
PLUGIN_TITLE: ""
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
- tag
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
host:
|
||||||
|
path: /home/drone/cache/cargo
|
||||||
|
- name: apt
|
||||||
|
host:
|
||||||
|
path: /home/drone/cache/apt
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -65,7 +85,8 @@ steps:
|
|||||||
- name: apt
|
- name: apt
|
||||||
path: /var/cache/apt
|
path: /var/cache/apt
|
||||||
when:
|
when:
|
||||||
event: push
|
event:
|
||||||
|
- push
|
||||||
- name: release
|
- name: release
|
||||||
image: rust:1
|
image: rust:1
|
||||||
commands:
|
commands:
|
||||||
@ -74,8 +95,14 @@ steps:
|
|||||||
- cargo build --release --verbose --all
|
- cargo build --release --verbose --all
|
||||||
- cd target/release
|
- cd target/release
|
||||||
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
|
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
path: /usr/local/cargo/registry
|
||||||
|
- name: apt
|
||||||
|
path: /var/cache/apt
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
- tag
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
@ -89,11 +116,12 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
PLUGIN_TITLE: ""
|
PLUGIN_TITLE: ""
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
- tag
|
||||||
volumes:
|
volumes:
|
||||||
- name: cargo
|
- name: cargo
|
||||||
host:
|
host:
|
||||||
path: /tmp/drone/cache/cargo
|
path: /home/drone/cache/cargo
|
||||||
- name: apt
|
- name: apt
|
||||||
host:
|
host:
|
||||||
path: /tmp/drone/cache/apt
|
path: /home/drone/cache/apt
|
Loading…
Reference in New Issue
Block a user