-
Notifications
You must be signed in to change notification settings - Fork 961
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
Conversation
.github/workflows/release.yaml
Outdated
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=( |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted
The following changes were made: