From 6394ac00d757d2385781fd25143db3921ffd485d Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Thu, 13 Jul 2023 22:49:32 +0200 Subject: [PATCH 1/4] chore(ci): compress binaries Signed-off-by: Miguel Martinez Trivino --- .goreleaser.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 6284136a0..3757c2236 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,6 +10,9 @@ builds: - -X main.Version={{ .Version }} targets: - linux_amd64 + hooks: + post: + - upx "{{ .Path }}" - binary: artifact-cas id: artifact-cas main: ./app/artifact-cas/cmd @@ -18,6 +21,9 @@ builds: - -X main.Version={{ .Version }} targets: - linux_amd64 + hooks: + post: + - upx "{{ .Path }}" - binary: chainloop id: cli main: ./app/cli @@ -28,6 +34,9 @@ builds: - darwin_arm64 - linux_amd64 - linux_arm64 + hooks: + post: + - upx "{{ .Path }}" # Plugins build # NOTE: On the event of a new plugin added to the project you need to # 1 - Add the plugins binary to be built in this section From ab3eb652caf467545f3b23927f2ff8a2d989ad71 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Thu, 13 Jul 2023 22:51:52 +0200 Subject: [PATCH 2/4] chore(ci): compress binaries Signed-off-by: Miguel Martinez Trivino --- .goreleaser.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 3757c2236..be4151537 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -47,6 +47,9 @@ builds: main: ./app/controlplane/plugins/core/discord-webhook/v1/cmd targets: - linux_amd64 + hooks: + post: + - upx "{{ .Path }}" archives: - builds: - cli From de4c92d9460015c55e21937ac7f394efb6b81795 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Fri, 14 Jul 2023 10:42:39 +0200 Subject: [PATCH 3/4] chore(ci): compress binaries Signed-off-by: Miguel Martinez Trivino --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e77e50ac..103d47d5e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,9 @@ jobs: cache: true cache-dependency-path: go.sum + - name: Test-upx + run: upx --version + - name: Go Module tidy check run: | go mod tidy From 478117379c30d9e081b9b4d041169edc94345a67 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Fri, 14 Jul 2023 10:44:15 +0200 Subject: [PATCH 4/4] chore(ci): compress binaries Signed-off-by: Miguel Martinez Trivino --- .github/workflows/test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 103d47d5e..1e77e50ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,9 +28,6 @@ jobs: cache: true cache-dependency-path: go.sum - - name: Test-upx - run: upx --version - - name: Go Module tidy check run: | go mod tidy