From 1de2d8a94bab910e8973f21c9f265ab6cdbb9409 Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Tue, 27 Feb 2024 18:41:35 +0000 Subject: [PATCH] Avoid busting the layer cache when installing osslsigncode (#38620) --- build.assets/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.assets/Dockerfile b/build.assets/Dockerfile index c4396d488d936..7fe01ac4adb88 100644 --- a/build.assets/Dockerfile +++ b/build.assets/Dockerfile @@ -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 \