updated .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2023-11-03 10:26:10 +01:00
parent db7001c749
commit 59ad4a6624

View File

@ -14,8 +14,13 @@ steps:
commands:
- apt-get update -y
- apt-get install -y libnftnl-dev libmnl-dev
- curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_amd64
- chmod +x /usr/bin/sccache
- cargo build --verbose --all
- cargo test --verbose --all
environment:
RUSTC_WRAPPER: /usr/bin/sccache
SCCACHE_REDIS: redis://sys01.paulbsd.com:6379/1
volumes:
- name: cargo
path: /usr/local/cargo/registry
@ -31,9 +36,14 @@ steps:
commands:
- apt-get update -y
- apt-get install -y libnftnl-dev libmnl-dev
- curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_amd64
- chmod +x /usr/bin/sccache
- cargo build --release --verbose --all
- cd target/release
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
environment:
RUSTC_WRAPPER: /usr/bin/sccache
SCCACHE_REDIS: redis://sys01.paulbsd.com:6379/1
volumes:
- name: cargo
path: /usr/local/cargo/registry
@ -81,8 +91,13 @@ steps:
commands:
- apt-get update -y
- apt-get install -y libnftnl-dev libmnl-dev
- curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_arm64
- chmod +x /usr/bin/sccache
- cargo build --verbose --all
- cargo test --verbose --all
environment:
RUSTC_WRAPPER: /usr/bin/sccache
SCCACHE_REDIS: redis://sys01.paulbsd.com:6379/1
volumes:
- name: cargo
path: /usr/local/cargo/registry
@ -98,9 +113,14 @@ steps:
commands:
- apt-get update -y
- apt-get install -y libnftnl-dev libmnl-dev
- curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_arm64
- chmod +x /usr/bin/sccache
- cargo build --release --verbose --all
- cd target/release
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
environment:
RUSTC_WRAPPER: /usr/bin/sccache
SCCACHE_REDIS: redis://sys01.paulbsd.com:6379/1
volumes:
- name: cargo
path: /usr/local/cargo/registry