Push artifacts
Overview
After building a catalog bundle, push it to an OCI registry so NKP clusters can pull and deploy the catalog collection.
Push command
nkp push bundle --bundle <path-to-bundle.tar> --to-registry <registry-url>
Example
nkp push bundle \
--bundle ./nkp-ai-app-catalog.tar \
--to-registry ghcr.io/nutanix-cloud-native/nkp-ai-applications-catalog
Authentication
Ensure you are authenticated to the target OCI registry before pushing:
echo $GITHUB_TOKEN | docker login ghcr.io --username <user> --password-stdin
Or for other registries:
docker login <registry> --username <user> --password <token>
Deploying the pushed catalog on a cluster
Once the bundle is pushed, deploy it on an NKP cluster:
nkp create catalog-collection \
--url oci://<registry>/<catalog-name>/<catalog-name>/collection \
--tag <version> \
--workspace <workspace-name>
Run nkp push bundle --help for additional configuration flags.
Partner catalog publishing flow
For partner repository (nkp-partner-catalog), contributor flow is:
- Add/update app definitions and metadata.
- Open a PR to
main. - After merge, the repository release pipeline publishes catalog artifacts using the repo release spec files (for example,
stable.yaml).
In other words, for partner-catalog submissions you typically do not run manual nkp push bundle to a personal target registry as the final publication step. You can however publish to your own registry for testing before submission.