Repository navigation
Install credhub binary from amd64 tarball in deployment image - #703
Conversation
credhub-cli 2.9.64 added a linux-arm64 asset, so the `contains("linux")`
filter downloaded two tarballs and `mv credhub-* /usr/local/bin/credhub`
failed with "target is not a directory", breaking bump-bbl-deployment-image
builds 71 and 72.
The assets have always been .tgz archives containing ./credhub, so prior
images installed the tarball itself as /usr/local/bin/credhub rather than
a runnable binary. Filter on linux-amd64 (matching the bosh-cli and ytt
steps) and extract the archive, as the cf step does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe deployment Dockerfile now selects Credhub release assets that match Suggested reviewers: Merge Risk:
|
Problem
bump-bbl-deployment-image #72 (and #71) fail at the credhub install step:
credhub-cli 2.9.64 publishes both
credhub-linux-amd64-*.tgzandcredhub-linux-arm64-*.tgz. Theselect(contains("linux"))filter matched both, somvgot two sources and a non-directory target.There was also an older bug hidden by this one. The assets have always been
.tgzarchives that contain./credhub, so images built before this change installed the tarball itself as/usr/local/bin/credhub, not a runnable binary.Fix
linux-amd64, matching the bosh-cli and ytt steps./usr/local/binand remove the tarball, following the cf step.Verification
I ran the updated step in a
golang:latestlinux/amd64 container:🤖 Generated with Claude Code