mirror of
https://github.com/docker/compose.git
synced 2025-07-02 19:34:25 +02:00
Merge pull request #9750 from crazy-max/fix-checksums
ci: fix checksums file
This commit is contained in:
commit
abc73ed3d6
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -195,6 +195,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: compose
|
name: compose
|
||||||
path: ${{ env.DESTDIR }}
|
path: ${{ env.DESTDIR }}
|
||||||
|
-
|
||||||
|
name: Create checksums
|
||||||
|
working-directory: ${{ env.DESTDIR }}
|
||||||
|
run: |
|
||||||
|
find . -type f -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/# #' > checksums.txt
|
||||||
|
shasum -a 256 -U -c checksums.txt
|
||||||
-
|
-
|
||||||
name: License
|
name: License
|
||||||
run: cp packaging/* ${{ env.DESTDIR }}/
|
run: cp packaging/* ${{ env.DESTDIR }}/
|
||||||
|
@ -167,7 +167,6 @@ COPY --link --from=build /usr/bin/docker-compose /docker-compose.exe
|
|||||||
FROM binary-$TARGETOS AS binary
|
FROM binary-$TARGETOS AS binary
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM alpine AS releaser
|
FROM --platform=$BUILDPLATFORM alpine AS releaser
|
||||||
RUN apk add --no-cache file perl-utils
|
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
@ -177,8 +176,7 @@ RUN --mount=from=binary \
|
|||||||
# TODO: should just use standard arch
|
# TODO: should just use standard arch
|
||||||
TARGETARCH=$([ "$TARGETARCH" = "amd64" ] && echo "x86_64" || echo "$TARGETARCH"); \
|
TARGETARCH=$([ "$TARGETARCH" = "amd64" ] && echo "x86_64" || echo "$TARGETARCH"); \
|
||||||
TARGETARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH"); \
|
TARGETARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH"); \
|
||||||
cp docker-compose* "/out/docker-compose-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}$(ls docker-compose* | sed -e 's/^docker-compose//')" && \
|
cp docker-compose* "/out/docker-compose-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}$(ls docker-compose* | sed -e 's/^docker-compose//')"
|
||||||
(cd /out ; for f in *; do shasum --binary --algorithm 256 $f | tee -a /out/checksums.txt > $f.sha256; done)
|
|
||||||
|
|
||||||
FROM scratch AS release
|
FROM scratch AS release
|
||||||
COPY --from=releaser /out/ /
|
COPY --from=releaser /out/ /
|
||||||
|
Loading…
x
Reference in New Issue
Block a user