Skip to content

Commit

Permalink
chore(bosh-cli): download from github
Browse files Browse the repository at this point in the history
As new version are not available on s3 anymore.
Last available version on s3:
```
<Key>bosh-cli-7.5.2-linux-arm64</Key>
<LastModified>2024-01-02T17:53:52.000Z</LastModified>
```
  • Loading branch information
o-orand committed May 7, 2024
1 parent 3df94b4 commit eec5055
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bosh-cli-v2-cf-cli/bosh-cli-v2-cf-cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
it "has the expected version of the Bosh CLI (#{BOSH_CLI_VERSION})" do
expect(
command("bosh -v").stdout.strip
).to match("version #{BOSH_CLI_VERSION}-")
).to match("version #{BOSH_CLI_VERSION}$")
end

it "has the expected version of the CF CLI (#{CF_CLI_VERSION})" do
Expand Down
4 changes: 2 additions & 2 deletions bosh-cli-v2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ruby:3.1-slim-bullseye

# renovate: datasource=github-releases depName=cloudfoundry/bosh-cli
ENV BOSH_CLI_VERSION 7.5.6
ENV BOSH_CLI_SUM 98705c704beedb08621db48ab2f4cad42704b85aba36cc99f3a9dc2738ebc226
ENV BOSH_CLI_SUM 6fb9bb085c3afe7eff6e9a4e783731aeb4f03baf5ce1caf7ed229f29a97e60ac
ENV BOSH_CLI_FILENAME bosh-cli-${BOSH_CLI_VERSION}-linux-amd64

ENV DEBIAN_PACKAGES "ca-certificates wget git openssh-client file jq"
Expand All @@ -17,7 +17,7 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends ${BOSH_ENV_DEPS} \
&& rm -rf /var/lib/apt/lists/*

RUN wget -nv https://s3.amazonaws.com/bosh-cli-artifacts/${BOSH_CLI_FILENAME} \
RUN wget -nv https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_CLI_VERSION}/${BOSH_CLI_FILENAME} \
&& echo "${BOSH_CLI_SUM} ${BOSH_CLI_FILENAME}" | sha256sum -c - \
&& chmod +x ${BOSH_CLI_FILENAME} \
&& mv ${BOSH_CLI_FILENAME} /usr/local/bin/bosh
Expand Down
2 changes: 1 addition & 1 deletion bosh-cli-v2/bosh-cli-v2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
it "has the expected version of the Bosh CLI (#{BOSH_CLI_VERSION})" do
expect(
command("bosh -v").stdout.strip
).to match("version #{BOSH_CLI_VERSION}-")
).to match("version #{BOSH_CLI_VERSION}$")
end

it "has `file` available" do
Expand Down
4 changes: 2 additions & 2 deletions k8s-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ RUN echo "Computed ${YQ_FILENAME} sha256sum: $(sha256sum ${YQ_FILENAME})" \

# renovate: datasource=github-releases depName=cloudfoundry/bosh-cli
ENV BOSH_CLI_VERSION 7.5.6
ENV BOSH_CLI_SUM 98705c704beedb08621db48ab2f4cad42704b85aba36cc99f3a9dc2738ebc226
ENV BOSH_CLI_SUM 6fb9bb085c3afe7eff6e9a4e783731aeb4f03baf5ce1caf7ed229f29a97e60ac
ENV BOSH_CLI_FILENAME bosh-cli-${BOSH_CLI_VERSION}-linux-amd64
ADD https://s3.amazonaws.com/bosh-cli-artifacts/${BOSH_CLI_FILENAME} .
ADD https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_CLI_VERSION}/${BOSH_CLI_FILENAME} .
RUN echo "Computed ${BOSH_CLI_FILENAME} sha256sum: $(sha256sum ${BOSH_CLI_FILENAME})" \
&& echo "${BOSH_CLI_SUM} ${BOSH_CLI_FILENAME}" | sha256sum -c - \
&& chmod +x ${BOSH_CLI_FILENAME} \
Expand Down
2 changes: 1 addition & 1 deletion k8s-tools/k8s-tools_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@
it "has the expected version of the Bosh CLI" do
expect(
command("bosh -v").stdout.strip
).to match("version #{BOSH_CLI_VERSION}-")
).to match("version #{BOSH_CLI_VERSION}$")
end
end

0 comments on commit eec5055

Please sign in to comment.