Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hack/scripts/write-sha256sum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ esac
(
set -x
cd "$dir"
sha256sum --binary "$name" > "${name}.sha256"
# Write both sha256sum-compatible and bare-digest checksums.
sha256sum --binary "$name" > "${name}.sha256sum"
cut -d ' ' -f 1 "${name}.sha256sum" > "${name}.sha256"
)
2 changes: 1 addition & 1 deletion pkg/agent/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
2 changes: 1 addition & 1 deletion pkg/buildx/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
2 changes: 1 addition & 1 deletion pkg/compose/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
2 changes: 1 addition & 1 deletion pkg/containerd/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
2 changes: 1 addition & 1 deletion pkg/credential-helpers/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
2 changes: 1 addition & 1 deletion pkg/docker-cli/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
2 changes: 1 addition & 1 deletion pkg/docker-engine/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
6 changes: 3 additions & 3 deletions pkg/docker/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
workdir=$(mktemp -d -t docker-verify.XXXXXXXXXX)
tar zxvf "${package##*/}" -C "$workdir"
xx-verify --static "$workdir/docker/docker"
Expand All @@ -70,7 +70,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
unzip -l "${package##*/}"
workdir=$(mktemp -d -t docker-verify.XXXXXXXXXX)
unzip -q "${package##*/}" -d $workdir
Expand All @@ -91,7 +91,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/bin --strip-components=1
)
done
Expand Down
2 changes: 1 addition & 1 deletion pkg/model/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ RUN --mount=from=bin,target=/build <<EOT
(
set -x
cd "${package%/*}"
sha256sum -c "${package##*/}.sha256"
sha256sum -c "${package##*/}.sha256sum"
tar zxvf "${package##*/}" -C /usr/local --strip-components=1
)
done
Expand Down
Loading