From 931dc63d59e23fe349f842dfd04515bde2720e0a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 3 Feb 2020 01:33:15 +0100 Subject: [PATCH] use upx to compress binaries --- .drone.star | 9 +++++++++ .drone.yml | 9 ++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index 630b652..f34ba4b 100644 --- a/.drone.star +++ b/.drone.star @@ -74,6 +74,15 @@ def binaries(arch): '$(find release/ -executable -type f | grep url-parser-.*-linux-amd64) --help', ] }, + { + 'name': 'compress', + 'image': 'alpine', + 'commands': [ + 'apk add upx', + 'find release/ -maxdepth 1 -executable -type f -exec upx {} \;', + 'ls -lh release/', + ] + }, { 'name': 'checksum', 'image': 'alpine', diff --git a/.drone.yml b/.drone.yml index de0451f..b3b22e7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -47,6 +47,13 @@ steps: commands: - $(find release/ -executable -type f | grep url-parser-.*-linux-amd64) --help +- name: compress + image: alpine + commands: + - apk add upx + - find release/ -maxdepth 1 -executable -type f -exec upx {} \; + - ls -lh release/ + - name: checksum image: alpine commands: @@ -111,6 +118,6 @@ depends_on: --- kind: signature -hmac: 4fe412d8dad69f05a8b864120dd812fb19e9c4652016ed9ff704f4de8fee6d8a +hmac: 84fb5966acf998f5efffbec5d0a279838b7912b578970668eb8fccd66c5ddc4e ...