This commit is contained in:
parent
dd11d6bc41
commit
044fa2b1f1
42
.drone.yml
42
.drone.yml
@ -13,11 +13,11 @@ steps:
|
||||
pull: always
|
||||
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
|
||||
- apt-get install -y libnftnl-dev libmnl-dev libclang-dev
|
||||
- curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH}
|
||||
- chmod +x ${RUSTC_WRAPPER}
|
||||
- cargo b -v --all
|
||||
- cargo t -v --all
|
||||
environment:
|
||||
RUSTC_WRAPPER: /usr/bin/sccache
|
||||
SCCACHE_WEBDAV_ENDPOINT: https://sccache.paulbsd.com
|
||||
@ -36,10 +36,10 @@ steps:
|
||||
pull: always
|
||||
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
|
||||
- apt-get install -y libnftnl-dev libmnl-dev libclang-dev
|
||||
- curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH}
|
||||
- chmod +x ${RUSTC_WRAPPER}
|
||||
- cargo b -r -v --all
|
||||
- cd target/release
|
||||
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
|
||||
environment:
|
||||
@ -61,9 +61,6 @@ steps:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files: "target/release/*.tar.gz"
|
||||
#checksum:
|
||||
# - sha256
|
||||
# - sha512
|
||||
environment:
|
||||
PLUGIN_TITLE: ""
|
||||
when:
|
||||
@ -92,11 +89,11 @@ steps:
|
||||
pull: always
|
||||
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
|
||||
- apt-get install -y libnftnl-dev libmnl-dev libclang-dev
|
||||
- curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH}
|
||||
- chmod +x ${RUSTC_WRAPPER}
|
||||
- cargo b -v --all
|
||||
- cargo t -v --all
|
||||
environment:
|
||||
RUSTC_WRAPPER: /usr/bin/sccache
|
||||
SCCACHE_WEBDAV_ENDPOINT: https://sccache.paulbsd.com
|
||||
@ -115,10 +112,10 @@ steps:
|
||||
pull: always
|
||||
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
|
||||
- apt-get install -y libnftnl-dev libmnl-dev libclang-dev
|
||||
- curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH}
|
||||
- chmod +x ${RUSTC_WRAPPER}
|
||||
- cargo b -r -v --all
|
||||
- cd target/release
|
||||
- tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc
|
||||
environment:
|
||||
@ -140,9 +137,6 @@ steps:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files: "target/release/*.tar.gz"
|
||||
#checksum:
|
||||
# - sha256
|
||||
# - sha512
|
||||
environment:
|
||||
PLUGIN_TITLE: ""
|
||||
when:
|
||||
|
Loading…
Reference in New Issue
Block a user