File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
ci/dockerfiles/deployment Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,14 @@ RUN wget https://github.com/cloudfoundry-incubator/spiff/releases/download/v1.0.
67
67
mv spiff_linux_amd64 /usr/local/bin/spiff && \
68
68
chmod +x /usr/local/bin/spiff
69
69
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*
73
78
74
79
# Install Credhub
75
80
RUN curl -s https://api.github.com/repos/cloudfoundry/credhub-cli/releases/latest | \
You can’t perform that action at this time.
0 commit comments