Overview
Generic artifacts support:- Any file type (executables, archives, documents, etc.)
- Glob pattern uploads for multiple files
- Custom file paths within packages
- Version management
- Metadata tagging
Pushing generic artifacts
Use thehc artifact push generic command to upload files:
Required flags
Name for the artifact package
Base URL for the package service (e.g.,
https://app.harness.io/registry/pkg)Optional flags
Version for the artifact. Defaults to
1.0.0Name of the file being uploaded. Defaults to the actual filename
File path within the package. Defaults to the filename
Description of the artifact
Examples
Pulling generic artifacts
Download generic artifacts using the pull command:Example
Use cases
Binary distributions
Binary distributions
Store compiled binaries, executables, or native libraries for different platforms.
Documentation archives
Documentation archives
Store documentation bundles, PDFs, or help files.
Configuration files
Configuration files
Store configuration templates or environment-specific configs.
ML models
ML models
Store trained machine learning models.
Best practices
- Use semantic versioning for your artifacts
- Include descriptive metadata for better organization
- Use consistent naming conventions across packages
- Leverage glob patterns for batch uploads
- Document the purpose and usage in the description field