Skip to content

fix: upload the slim binaries from the build directory to the GCS bucket #19281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 11, 2025

Conversation

jdomeracki-coder
Copy link
Contributor

@jdomeracki-coder jdomeracki-coder commented Aug 11, 2025

The following changes were made:

  • Introduced a new list of slim binary names.
  • Updated the upload script to copy the slim binaries from the ./build directory to the GCS bucket (instead of the /site/out/bin directory)

@jdomeracki-coder jdomeracki-coder marked this pull request as draft August 11, 2025 10:10
Comment on lines 645 to 656
slim_binaries=(
"coder-slim_${version}_darwin_amd64"
"coder-slim_${version}_darwin_arm64"
"coder-slim_${version}_linux_amd64"
"coder-slim_${version}_linux_arm64"
"coder-slim_${version}_linux_armv7"
"coder-slim_${version}_windows_amd64.exe"
"coder-slim_${version}_windows_arm64.exe"
)

# Target array of CLI binary names
cli_binaries=(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use an associative array? It's essentially a map. Avoids using two arrays

declare -A binaries
binaries["coder-darwin-amd64"] = "build/coder_slim_${version}-darwin_amd64"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought about it but I think having two arrays makes it actually more readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, change my mind - it's actually nice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted

@jdomeracki-coder jdomeracki-coder marked this pull request as ready for review August 11, 2025 10:24
@jdomeracki-coder jdomeracki-coder merged commit 5d42b18 into main Aug 11, 2025
29 checks passed
@jdomeracki-coder jdomeracki-coder deleted the publish-signatures-fix branch August 11, 2025 10:54
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants