Skip to content

Commit bde39e1

Browse files
authored
Merge pull request #2297 from marquiz/devel/helm-oci-artifacthub
helm: add artifacthub metadata file to OCI registry
2 parents 86e7497 + c5e0c34 commit bde39e1

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ helm-lint:
184184
helm-push:
185185
helm package deployment/helm/node-feature-discovery --version $(CHART_VERSION) --app-version $(IMAGE_TAG_NAME)
186186
helm push node-feature-discovery-$(CHART_VERSION).tgz oci://${IMAGE_REGISTRY}/charts
187+
# Push artifacthub.io metadata
188+
# Ref: https://artifacthub.io/docs/topics/repositories/helm-charts/#oci-support
189+
oras push \
190+
${IMAGE_REGISTRY}/charts/node-feature-discovery:artifacthub.io \
191+
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
192+
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
187193

188194
test:
189195
$(GO_CMD) test -covermode=atomic -coverprofile=coverage.out ./cmd/... ./pkg/... ./source/...

artifacthub-repo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Artifact Hub repository metadata file
2+
#
3+
repositoryID: "e1880eb8-0c79-43e4-8e92-bc9a73bb8b68"

scripts/test-infra/push-image.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ gcloud auth configure-docker
1212
IMAGE_ALL_PLATFORMS=linux/amd64,linux/arm64 make push-all $VERSION_OVERRIDE
1313

1414
go install helm.sh/helm/v3/cmd/[email protected]
15+
go install oras.land/oras/cmd/[email protected]
1516

1617
make helm-push $VERSION_OVERRIDE

0 commit comments

Comments
 (0)