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