Merge pull request #3911 from thaJeztah/2.8_backport_fix_releaser_filenames

[release/2.8 backport] Dockerfile: fix filenames of artifacts
This commit is contained in:
Milos Gajdos 2023-05-09 23:43:34 +01:00 committed by GitHub
commit cb840f63b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 /