Generate zip with the binary.
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Pedro de Oliveira 2023-04-23 03:40:27 +01:00
parent e7504e3e79
commit 42849e6c8b
1 changed files with 11 additions and 5 deletions

View File

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