From a88519eff37096986b89459c0e99260f20f6a7dd Mon Sep 17 00:00:00 2001 From: Brennen Smith Date: Tue, 25 Nov 2025 14:42:23 -0800 Subject: [PATCH 1/2] CE-1012 - Runpodctl should build a upx version during release build --- .goreleaser.yml | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5731e65..0725d30 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,8 @@ version: 2 builds: - - binary: runpodctl + - id: default + binary: runpodctl goos: [darwin, linux, windows] goarch: [amd64, arm64] env: [CGO_ENABLED=0] @@ -9,13 +10,46 @@ builds: ldflags: - -s -w -X main.Version={{ .Version }}-{{ .ShortCommit }} -release: - prerelease: auto + - id: linux_amd64_upx + binary: runpodctl + goos: [linux] + goarch: [amd64] + env: [CGO_ENABLED=0] + flags: [-mod=mod] + ldflags: + - -s -w -X main.Version={{ .Version }}-{{ .ShortCommit }} + +upx: + - enabled: true + ids: [linux_amd64_upx] + goos: [linux] + goarch: [amd64] + lzma: false + compress: best universal_binaries: - - replace: true + - id: default + replace: true + +archives: + - id: default + ids: [default] + formats: [tar.gz] + format_overrides: + - goos: windows + formats: [zip] + name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}" + + # UPX linux/amd64 artifact, also archived + - id: upx + ids: [linux_amd64_upx] + formats: [tar.gz] + name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}-upx" + +release: + prerelease: auto -brews: +homebrew_casks: - name: runpodctl homepage: "https://github.com/runpod/runpodctl" repository: @@ -24,6 +58,8 @@ brews: commit_author: name: runpod email: support@runpod.io + ids: [default] checksum: - name_template: "checksums.txt" + name_template: "{{ .ProjectName }}-{{ .Version }}_checksums_sha256.txt" + algorithm: sha256 From 9dd0b213bcf8b58db7cb0ba9d47eb872413f3553 Mon Sep 17 00:00:00 2001 From: Brennen Smith Date: Tue, 25 Nov 2025 16:09:58 -0800 Subject: [PATCH 2/2] tweak checksum filename, add comment --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 0725d30..244dd71 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -40,7 +40,7 @@ archives: formats: [zip] name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}" - # UPX linux/amd64 artifact, also archived + # UPX linux/amd64 artifact, also archived for internal Runpod use - id: upx ids: [linux_amd64_upx] formats: [tar.gz] @@ -61,5 +61,5 @@ homebrew_casks: ids: [default] checksum: - name_template: "{{ .ProjectName }}-{{ .Version }}_checksums_sha256.txt" + name_template: "checksums_{{ .Version }}_sha256.txt" algorithm: sha256