Skip to content

Commit 0ec0405

Browse files
committed
ci: fix checksums file
Signed-off-by: CrazyMax <[email protected]>
1 parent 8d12042 commit 0ec0405

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}/

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ COPY --link --from=build /usr/bin/docker-compose /docker-compose.exe
167167
FROM binary-$TARGETOS AS binary
168168

169169
FROM --platform=$BUILDPLATFORM alpine AS releaser
170-
RUN apk add --no-cache file perl-utils
171170
WORKDIR /work
172171
ARG TARGETOS
173172
ARG 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

183181
FROM scratch AS release
184182
COPY --from=releaser /out/ /

0 commit comments

Comments
 (0)