1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Dockerfile: rename version ARG

Use the same naming across Makefile and Dockerfile.

(cherry picked from commit 1f873f0dfc)
This commit is contained in:
Markus Lehtonen 2020-05-19 12:21:37 +03:00
parent 326ff24b2a
commit d75beace9b
2 changed files with 3 additions and 3 deletions

View file

@ -11,10 +11,10 @@ RUN go mod download
# Do actual build
COPY . /go/node-feature-discovery
ARG NFD_VERSION
ARG VERSION
ARG HOSTMOUNT_PREFIX
RUN make install VERSION=$NFD_VERSION HOSTMOUNT_PREFIX=$HOSTMOUNT_PREFIX
RUN make install VERSION=$VERSION HOSTMOUNT_PREFIX=$HOSTMOUNT_PREFIX
RUN make test

View file

@ -44,7 +44,7 @@ install:
$(GO_CMD) install -v $(LDFLAGS) ./cmd/...
image: yamls
$(IMAGE_BUILD_CMD) --build-arg NFD_VERSION=$(VERSION) \
$(IMAGE_BUILD_CMD) --build-arg VERSION=$(VERSION) \
--build-arg HOSTMOUNT_PREFIX=$(CONTAINER_HOSTMOUNT_PREFIX) \
-t $(IMAGE_TAG) \
$(IMAGE_BUILD_EXTRA_OPTS) ./