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
|
||||
- cargo build --verbose --all
|
||||
- cargo test --verbose --all
|
||||
volumes:
|
||||
- name: cargo
|
||||
path: /usr/local/cargo/registry
|
||||
- name: apt
|
||||
path: /var/cache/apt
|
||||
when:
|
||||
event: push
|
||||
event:
|
||||
- push
|
||||
- name: release
|
||||
image: rust:1
|
||||
commands:
|
||||
@ -25,8 +31,14 @@ steps:
|
||||
- cargo build --release --verbose --all
|
||||
- cd target/release
|
||||
- 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:
|
||||
event: tag
|
||||
event:
|
||||
- tag
|
||||
- name: publish
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
@ -40,7 +52,15 @@ steps:
|
||||
environment:
|
||||
PLUGIN_TITLE: ""
|
||||
when:
|
||||
event: tag
|
||||
event:
|
||||
- tag
|
||||
volumes:
|
||||
- name: cargo
|
||||
host:
|
||||
path: /home/drone/cache/cargo
|
||||
- name: apt
|
||||
host:
|
||||
path: /home/drone/cache/apt
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@ -65,7 +85,8 @@ steps:
|
||||
- name: apt
|
||||
path: /var/cache/apt
|
||||
when:
|
||||
event: push
|
||||
event:
|
||||
- push
|
||||
- name: release
|
||||
image: rust:1
|
||||
commands:
|
||||
@ -74,8 +95,14 @@ steps:
|
||||
- cargo build --release --verbose --all
|
||||
- cd target/release
|
||||
- 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:
|
||||
event: tag
|
||||
event:
|
||||
- tag
|
||||
- name: publish
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
@ -89,11 +116,12 @@ steps:
|
||||
environment:
|
||||
PLUGIN_TITLE: ""
|
||||
when:
|
||||
event: tag
|
||||
event:
|
||||
- tag
|
||||
volumes:
|
||||
- name: cargo
|
||||
host:
|
||||
path: /tmp/drone/cache/cargo
|
||||
path: /home/drone/cache/cargo
|
||||
- name: apt
|
||||
host:
|
||||
path: /tmp/drone/cache/apt
|
||||
path: /home/drone/cache/apt
|
Loading…
Reference in New Issue
Block a user