Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
build: work around GitHub "releases/latest" URL changes
Browse files Browse the repository at this point in the history
A GET used to return some JSON that described the latest URL. Not anymore, now
one has to follow the redirect to find the latest tag.
  • Loading branch information
pohly committed Dec 12, 2022
1 parent 263dd31 commit e529813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN equivs-build python3-fake-debian-package
RUN set -x && \
git clone https://github.com/intel/ipmctl.git && \
cd ipmctl && \
tag=$(curl --silent https://github.com/intel/ipmctl/releases/latest | sed -e 's;.*tag/\([^"]*\).*;\1;') && \
tag=$(basename $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/intel/ipmctl/releases/latest)) && \
git checkout $tag && \
mkdir build && \
cd build && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.UBI
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RUN set -x && \
mkdir -p /usr/local/share/package-licenses && \
cp LICENSE /usr/local/share/package-licenses/ipmctl.LICENSE && \
cd ipmctl && \
tag=$(curl --silent https://github.com/intel/ipmctl/releases/latest | sed -e 's;.*tag/\([^"]*\).*;\1;') && \
tag=$(basename $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/intel/ipmctl/releases/latest)) && \
git checkout $tag && \
mkdir build && \
cd build && \
Expand Down

0 comments on commit e529813

Please sign in to comment.