Skip to content

Commit aabd4f0

Browse files
skitttpantelis
authored andcommitted
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 <[email protected]>
1 parent de38b62 commit aabd4f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package/Dockerfile.nettest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ARG FEDORA_VERSION=41
22

33
FROM --platform=${BUILDPLATFORM} fedora:${FEDORA_VERSION} AS base
4+
ARG VERSION
45
ARG FEDORA_VERSION
56
ARG TARGETPLATFORM
67

@@ -12,6 +13,7 @@ RUN /dnf_install -a ${TARGETPLATFORM} -v ${FEDORA_VERSION} -r /output/nettest \
1213

1314
FROM scratch
1415
ARG TARGETPLATFORM
16+
ARG VERSION
1517
ENV PATH="/app:$PATH"
1618

1719
COPY --from=base /output/nettest /

0 commit comments

Comments
 (0)