Dockerfile: fix filenames of artifacts

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-05-10 00:26:02 +02:00
parent f55a6552b0
commit 435c7b9a7b
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -44,8 +44,8 @@ RUN --mount=from=binary,target=/build \
VERSION=$(cat /tmp/.version) \ VERSION=$(cat /tmp/.version) \
&& mkdir -p /out \ && mkdir -p /out \
&& cp /build/registry /src/README.md /src/LICENSE . \ && cp /build/registry /src/README.md /src/LICENSE . \
&& tar -czvf "/out/registry_${VERSION#v}_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}.tar.tgz" * \ && tar -czvf "/out/registry_${VERSION#v}_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}.tar.gz" * \
&& sha256sum -z "/out/registry_${VERSION#v}_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}.tar.tgz" | awk '{ print $1 }' > "/out/registry_${VERSION#v}_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}.tar.tgz.sha256" && sha256sum -z "/out/registry_${VERSION#v}_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}.tar.gz" | awk '{ print $1 }' > "/out/registry_${VERSION#v}_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}.tar.gz.sha256"
FROM scratch AS artifact FROM scratch AS artifact
COPY --from=releaser /out / COPY --from=releaser /out /