Skip to content

Commit cd93138

Browse files
selzocnader-ziada
authored andcommitted
Change cf installation to use github source
Using "cli.run.pivotal.io/stable?release=linux64-binary&source=github" as the source lead to errors like "chmod: cannot access 'cf': Permission denied". ref: https://bosh.ci.cloudfoundry.org/teams/main/pipelines/bosh-bootloader/jobs/bump-bbl-deployment-image/builds/29 Co-authored-by: Nader Ziada <[email protected]>
1 parent 384d2a6 commit cd93138

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ci/dockerfiles/deployment/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,14 @@ RUN wget https://github.com/cloudfoundry-incubator/spiff/releases/download/v1.0.
6767
mv spiff_linux_amd64 /usr/local/bin/spiff && \
6868
chmod +x /usr/local/bin/spiff
6969

70-
RUN curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx && \
71-
chmod +x cf && \
72-
mv cf /usr/local/bin/cf
70+
# Install cf
71+
RUN curl -s https://api.github.com/repos/cloudfoundry/cli/releases/latest | \
72+
jq -r '.assets[] | .browser_download_url | select(contains("linux_x86-64"))' | \
73+
xargs wget && \
74+
tar -xvf cf*.tgz && \
75+
rm cf*.tgz && \
76+
mv cf* /usr/local/bin && \
77+
chmod +x /usr/local/bin/cf*
7378

7479
# Install Credhub
7580
RUN curl -s https://api.github.com/repos/cloudfoundry/credhub-cli/releases/latest | \

0 commit comments

Comments
 (0)