Skip to content

Commit 0a2ac8c

Browse files
arampriceclaude
andcommitted
Install credhub binary from amd64 tarball in deployment image
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>
1 parent d6e4264 commit 0a2ac8c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎ci/dockerfiles/deployment/Dockerfile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ RUN curl -s https://api.github.com/repos/cloudfoundry/cli/releases/latest | \
7878

7979
# Install Credhub
8080
RUN curl -s https://api.github.com/repos/cloudfoundry/credhub-cli/releases/latest | \
81-
jq -r '.assets[] | .browser_download_url | select(contains("linux"))' | \
81+
jq -r '.assets[] | .browser_download_url | select(contains("linux-amd64"))' | \
8282
xargs wget && \
83-
mv credhub-* /usr/local/bin/credhub && \
83+
tar -xzf credhub-linux-amd64-*.tgz -C /usr/local/bin && \
84+
rm credhub-linux-amd64-*.tgz && \
8485
chmod +x /usr/local/bin/credhub
8586

8687
# Install yq

0 commit comments

Comments
 (0)