Skip to content

Commit e3b4367

Browse files
authored
Merge pull request #2128 from ozhuraki/helm-oci
Makefile: Add helm-push target
2 parents 752e6eb + b36e078 commit e3b4367

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ JEKYLL_OPTS := -d '$(SITE_DESTDIR)' $(if $(SITE_BASEURL),-b '$(SITE_BASEURL)',)
3131

3232
VERSION := $(shell git describe --tags --dirty --always --match "v*")
3333

34+
CHART_VERSION ?= $(shell echo $(VERSION) | cut -c2-)
35+
3436
IMAGE_REGISTRY ?= registry.k8s.io/nfd
3537
IMAGE_TAG_NAME ?= $(VERSION)
3638
IMAGE_EXTRA_TAG_NAMES ?=
@@ -189,6 +191,10 @@ mdlint:
189191
helm-lint:
190192
helm lint --strict deployment/helm/node-feature-discovery/
191193

194+
helm-push:
195+
helm package deployment/helm/node-feature-discovery --version $(CHART_VERSION) --app-version $(IMAGE_TAG_NAME)
196+
helm push node-feature-discovery-$(CHART_VERSION).tgz oci://${IMAGE_REGISTRY}/charts
197+
192198
test:
193199
$(GO_CMD) test -covermode=atomic -coverprofile=coverage.out ./cmd/... ./pkg/... ./source/...
194200
cd api/nfd && $(GO_CMD) test -covermode=atomic -coverprofile=coverage.out ./...

0 commit comments

Comments
 (0)