forked from TrueCloudLab/distribution
Dockerfile: fix filenames of artifacts
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
f55a6552b0
commit
435c7b9a7b
1 changed files with 2 additions and 2 deletions
|
@ -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 /
|
||||||
|
|
Loading…
Reference in a new issue