updated .drone.yml
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Paul 2022-06-04 15:09:55 +02:00
parent 72b5916b56
commit 46d38fe318

View File

@ -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