mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +00:00
Makefile: add 'push' target
Now 'make push' can be used to push the container image to the remote registry.
This commit is contained in:
parent
d234ec12ac
commit
a8e7259bf8
2 changed files with 14 additions and 9 deletions
4
Makefile
4
Makefile
|
@ -2,6 +2,7 @@
|
||||||
.FORCE:
|
.FORCE:
|
||||||
|
|
||||||
IMAGE_BUILD_CMD := docker build
|
IMAGE_BUILD_CMD := docker build
|
||||||
|
IMAGE_PUSH_CMD := docker push
|
||||||
|
|
||||||
VERSION := $(shell git describe --tags --dirty --always)
|
VERSION := $(shell git describe --tags --dirty --always)
|
||||||
|
|
||||||
|
@ -39,3 +40,6 @@ mock:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test ./cmd/... ./pkg/...
|
go test ./cmd/... ./pkg/...
|
||||||
|
|
||||||
|
push:
|
||||||
|
$(IMAGE_PUSH_CMD) $(IMAGE_TAG)
|
||||||
|
|
19
README.md
19
README.md
|
@ -611,15 +611,16 @@ attribute in the spec template(s) to the new location
|
||||||
There are several Makefile variables that control the build process and the
|
There are several Makefile variables that control the build process and the
|
||||||
name of the resulting container image.
|
name of the resulting container image.
|
||||||
|
|
||||||
| Variable | Description | Default value
|
| Variable | Description | Default value
|
||||||
| -------------- | ------------------------------------ | ------------------- |
|
| -------------- | -------------------------------------------- | ----------- |
|
||||||
| IMAGE_BUILD_CMD | Command to build the image | docker build
|
| IMAGE_BUILD_CMD | Command to build the image | docker build
|
||||||
| IMAGE_REGISTRY | Container image registry to use | quay.io/kubernetes_incubator
|
| IMAGE_PUSH_CMD | Command to push the image to remote registry | docker push
|
||||||
| IMAGE_NAME | Container image name | node-feature-discovery
|
| IMAGE_REGISTRY | Container image registry to use | quay.io/kubernetes_incubator
|
||||||
| IMAGE_TAG_NAME | Container image tag name | <nfd version>
|
| IMAGE_NAME | Container image name | node-feature-discovery
|
||||||
| IMAGE_REPO | Container image repository to use | <IMAGE_REGISTRY>/<IMAGE_NAME>
|
| IMAGE_TAG_NAME | Container image tag name | <nfd version>
|
||||||
| IMAGE_TAG | Full image:tag to tag the image with | <IMAGE_REPO>/<IMAGE_NAME>
|
| IMAGE_REPO | Container image repository to use | <IMAGE_REGISTRY>/<IMAGE_NAME>
|
||||||
| K8S_NAMESPACE | nfd-master and nfd-worker namespace | kube-system
|
| IMAGE_TAG | Full image:tag to tag the image with | <IMAGE_REPO>/<IMAGE_NAME>
|
||||||
|
| K8S_NAMESPACE | nfd-master and nfd-worker namespace | kube-system
|
||||||
|
|
||||||
For example, to use a custom registry:
|
For example, to use a custom registry:
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue