From c29dad1cb64d392ec72e59883f5b3094de94629a Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Fri, 3 Jan 2025 11:46:17 +0100 Subject: [PATCH] nettest: pass VERSION as an argument This ensures that it is available when writing /app/version. Without that, /app/version is empty and subctl show versions can't show the corresponding version information. Signed-off-by: Stephen Kitt --- package/Dockerfile.nettest | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/Dockerfile.nettest b/package/Dockerfile.nettest index eede463b..11eab784 100644 --- a/package/Dockerfile.nettest +++ b/package/Dockerfile.nettest @@ -1,6 +1,7 @@ ARG FEDORA_VERSION=41 FROM --platform=${BUILDPLATFORM} fedora:${FEDORA_VERSION} AS base +ARG VERSION ARG FEDORA_VERSION ARG TARGETPLATFORM @@ -12,6 +13,7 @@ RUN /dnf_install -a ${TARGETPLATFORM} -v ${FEDORA_VERSION} -r /output/nettest \ FROM scratch ARG TARGETPLATFORM +ARG VERSION ENV PATH="/app:$PATH" COPY --from=base /output/nettest /