Skip to content

Commit

Permalink
Avoid busting the layer cache when installing osslsigncode (#38620)
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet authored Feb 27, 2024
1 parent 9ae74f9 commit 1de2d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ RUN apt-get -y update && \
# Code Signing Certificate needs us to use osslsigncode >= 2.6, which
# allows the use of legacy OpenSSL algorithms. This is not yet provided
# by Ubuntu, so we will have to fetch it ourselves.
RUN --mount=type=bind,target=/context \
RUN --mount=type=bind,source=download-hashes/osslsigncode.sha256,target=/context/osslsigncode.sha256 \
curl -L https://github.com/mtrojnar/osslsigncode/releases/download/2.6/osslsigncode-2.6-ubuntu-22.04.zip -o osslsigncode.zip \
&& sha256sum --strict -c /context/download-hashes/osslsigncode.sha256 \
&& sha256sum --strict -c /context/osslsigncode.sha256 \
&& unzip -d /tmp/osslsigncode osslsigncode.zip \
&& install -m 0755 /tmp/osslsigncode/bin/osslsigncode /usr/bin \
&& rm -rf /tmp/osslsigncode \
Expand Down

0 comments on commit 1de2d8a

Please sign in to comment.