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
|
||||
commands:
|
||||
- cargo build --release
|
||||
- name: archive
|
||||
image: plugins/zip
|
||||
settings:
|
||||
source: target/release/voctool
|
||||
target: voctool.zip
|
||||
- name: package
|
||||
image: alpine
|
||||
environment:
|
||||
- BINARY_NAME=voctool
|
||||
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