mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
d527d588f3
- Used build args to pass the correct version.
15 lines
455 B
Makefile
15 lines
455 B
Makefile
.PHONY: all
|
|
|
|
QUAY_DOMAIN_NAME := quay.io
|
|
QUAY_REGISTRY_USER := kubernetes_incubator
|
|
DOCKER_IMAGE_NAME := node-feature-discovery
|
|
|
|
VERSION := $(shell git describe --tags --dirty --always)
|
|
|
|
all: docker
|
|
|
|
# To override QUAY_REGISTRY_USER use the -e option as follows:
|
|
# QUAY_REGISTRY_USER=<my-username> make docker -e.
|
|
docker:
|
|
docker build --build-arg NFD_VERSION=$(VERSION) \
|
|
-t $(QUAY_DOMAIN_NAME)/$(QUAY_REGISTRY_USER)/$(DOCKER_IMAGE_NAME):$(VERSION) ./
|