Skip to content

Commit 1328650

Browse files
peanballramonskie
authored andcommitted
ci: pull bosh cli form GitHub releases
The S3 bucket from where the releases were pulled before doesn't seem to exist anymore.
1 parent c019343 commit 1328650

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci/dockerfiles/deployment/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ RUN wget https://github.com/stedolan/jq/releases/latest/download/jq-linux64 && \
5252
chmod +x /usr/local/bin/jq
5353

5454
# Install bosh_cli v2
55-
RUN curl -L "https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-$(curl -s https://api.github.com/repos/cloudfoundry/bosh-cli/releases | jq -r '.[0].name' | tr -d 'v')-linux-amd64" -o "/usr/local/bin/bosh" && \
56-
chmod +x "/usr/local/bin/bosh"
55+
RUN curl -s https://api.github.com/repos/cloudfoundry/bosh-cli/releases/latest | \
56+
jq -r '.assets[] | .browser_download_url | select(contains("linux-amd64"))' | \
57+
xargs wget && \
58+
mv bosh-cli-* /usr/local/bin/bosh && \
59+
chmod +x /usr/local/bin/bosh
5760

5861
# Install bbl
5962
RUN curl -s https://api.github.com/repos/cloudfoundry/bosh-bootloader/releases/latest | \

0 commit comments

Comments
 (0)