Skip to content

Commit 5d42b18

Browse files
fix: upload the slim binaries from the build directory to the GCS bucket (#19281)
Updated the upload script to copy the slim binaries from the ./build directory to the GCS bucket (instead of the ./site/out/bin directory)
1 parent b7e0266 commit 5d42b18

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/release.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -641,20 +641,21 @@ jobs:
641641
642642
version="$(./scripts/version.sh)"
643643
644-
binaries=(
645-
"coder-darwin-amd64"
646-
"coder-darwin-arm64"
647-
"coder-linux-amd64"
648-
"coder-linux-arm64"
649-
"coder-linux-armv7"
650-
"coder-windows-amd64.exe"
651-
"coder-windows-arm64.exe"
652-
)
653-
654-
for binary in "${binaries[@]}"; do
655-
detached_signature="${binary}.asc"
656-
gcloud storage cp "./site/out/bin/${binary}" "gs://releases.coder.com/coder-cli/${version}/${binary}"
657-
gcloud storage cp "./site/out/bin/${detached_signature}" "gs://releases.coder.com/coder-cli/${version}/${detached_signature}"
644+
# Source array of slim binaries
645+
declare -A binaries
646+
binaries["coder-darwin-amd64"]="coder-slim_${version}_darwin_amd64"
647+
binaries["coder-darwin-arm64"]="coder-slim_${version}_darwin_arm64"
648+
binaries["coder-linux-amd64"]="coder-slim_${version}_linux_amd64"
649+
binaries["coder-linux-arm64"]="coder-slim_${version}_linux_arm64"
650+
binaries["coder-linux-armv7"]="coder-slim_${version}_linux_armv7"
651+
binaries["coder-windows-amd64.exe"]="coder-slim_${version}_windows_amd64.exe"
652+
binaries["coder-windows-arm64.exe"]="coder-slim_${version}_windows_arm64.exe"
653+
654+
for cli_name in "${!binaries[@]}"; do
655+
slim_binary="${binaries[$cli_name]}"
656+
detached_signature="${slim_binary}.asc"
657+
gcloud storage cp "./build/${slim_binary}" "gs://releases.coder.com/coder-cli/${version}/${cli_name}"
658+
gcloud storage cp "./build/${detached_signature}" "gs://releases.coder.com/coder-cli/${version}/${cli_name}.asc"
658659
done
659660
660661
- name: Publish release

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy