Generate zip with the binary.
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
e7504e3e79
commit
42849e6c8b
16
.drone.yml
16
.drone.yml
|
@ -11,8 +11,14 @@ steps:
|
||||||
image: rust:buster
|
image: rust:buster
|
||||||
commands:
|
commands:
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- name: archive
|
- name: package
|
||||||
image: plugins/zip
|
image: alpine
|
||||||
settings:
|
environment:
|
||||||
source: target/release/voctool
|
- BINARY_NAME=voctool
|
||||||
target: voctool.zip
|
commands:
|
||||||
|
- apk add zip tar
|
||||||
|
- zip ${BINARY_NAME}.zip target/release/${BINARY_NAME}
|
||||||
|
- tar -czvf ${BINARY_NAME}.tar.gz target/release/${BINARY_NAME}
|
||||||
|
when:
|
||||||
|
status: success
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue