From 0a2ac8c8f6861af2c5e776660d7e3dca70eefd2c Mon Sep 17 00:00:00 2001 From: aram price Date: Wed, 18 Nov 2026 17:25:13 -0800 Subject: [PATCH] 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 --- ci/dockerfiles/deployment/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/dockerfiles/deployment/Dockerfile b/ci/dockerfiles/deployment/Dockerfile index fdd8f4c5f..b8ec70196 100644 --- a/ci/dockerfiles/deployment/Dockerfile +++ b/ci/dockerfiles/deployment/Dockerfile @@ -78,9 +78,10 @@ RUN curl -s https://api.github.com/repos/cloudfoundry/cli/releases/latest | \ # Install Credhub RUN curl -s https://api.github.com/repos/cloudfoundry/credhub-cli/releases/latest | \ - jq -r '.assets[] | .browser_download_url | select(contains("linux"))' | \ + jq -r '.assets[] | .browser_download_url | select(contains("linux-amd64"))' | \ xargs wget && \ - mv credhub-* /usr/local/bin/credhub && \ + tar -xzf credhub-linux-amd64-*.tgz -C /usr/local/bin && \ + rm credhub-linux-amd64-*.tgz && \ chmod +x /usr/local/bin/credhub # Install yq