Skip to content

Commit

Permalink
nettest: pass VERSION as an argument
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
skitt committed Jan 6, 2025
1 parent 762dab2 commit daa1db8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/Dockerfile.nettest
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG FEDORA_VERSION=41

FROM --platform=${BUILDPLATFORM} fedora:${FEDORA_VERSION} AS base
ARG VERSION
ARG FEDORA_VERSION
ARG TARGETPLATFORM

Expand All @@ -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 /
Expand Down

0 comments on commit daa1db8

Please sign in to comment.