File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,12 @@ jobs:
195195 with :
196196 name : compose
197197 path : ${{ env.DESTDIR }}
198+ -
199+ name : Create checksums
200+ working-directory : ${{ env.DESTDIR }}
201+ run : |
202+ find . -type f -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/# #' > checksums.txt
203+ shasum -a 256 -U -c checksums.txt
198204 -
199205 name : License
200206 run : cp packaging/* ${{ env.DESTDIR }}/
Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ COPY --link --from=build /usr/bin/docker-compose /docker-compose.exe
167167FROM binary-$TARGETOS AS binary
168168
169169FROM --platform=$BUILDPLATFORM alpine AS releaser
170- RUN apk add --no-cache file perl-utils
171170WORKDIR /work
172171ARG TARGETOS
173172ARG TARGETARCH
@@ -177,8 +176,7 @@ RUN --mount=from=binary \
177176 # TODO: should just use standard arch
178177 TARGETARCH=$([ "$TARGETARCH" = "amd64" ] && echo "x86_64" || echo "$TARGETARCH" ); \
179178 TARGETARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH" ); \
180- cp docker-compose* "/out/docker-compose-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}$(ls docker-compose* | sed -e 's/^docker-compose//')" && \
181- (cd /out ; for f in *; do shasum --binary --algorithm 256 $f | tee -a /out/checksums.txt > $f.sha256; done)
179+ cp docker-compose* "/out/docker-compose-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}$(ls docker-compose* | sed -e 's/^docker-compose//')"
182180
183181FROM scratch AS release
184182COPY --from=releaser /out/ /
You can’t perform that action at this time.
0 commit comments