Harness CD
Deploy artifacts stored in Harness Artifacts directly from Harness CD pipelines without configuring external connectors or credentials.
Harness Continuous Delivery (CD) integrates natively with Harness Artifacts, so you can deploy stored artifacts without creating a connector or entering credentials. When you select Harness Artifacts as the artifact source in a CD service, the pipeline authenticates automatically and pulls the specified artifact version during execution.
This page covers configuring a CD service to use artifacts from Harness Artifacts, the supported artifact formats, and referencing Harness Artifacts images in containerized step group Run steps.
How it works
The integration follows a streamlined workflow:
Configure the artifact source. In your CD service definition, select Harness Artifacts as the artifact source type. Specify the registry, repository format, and image or package details.
No connector required. Unlike external registries, Harness Artifacts does not need a Docker connector or stored credentials. The pipeline authenticates as the identity that runs it.
Automatic artifact resolution. During pipeline execution, Harness authenticates with the registry, pulls the specified artifact version, and deploys it to the target environment.
Before you begin
Harness account with Artifacts and CD enabled. You need artifacts already stored in a Harness Artifacts registry. To create a registry, go to Create a registry.
Harness Artifacts license. Your account needs a valid HAR license.
CD pipeline with a deploy stage. To learn about CD fundamentals, go to the Harness CD documentation.
Kubernetes Cluster connector (only for the containerized step group flow). To add a Kubernetes Cluster connector, go to Add a Kubernetes Cluster connector.
Supported artifact formats
The following artifact formats are supported as CD artifact sources from Harness Artifacts:
Docker: Container images for Kubernetes, AWS Lambda, Tanzu, serverless, and custom deployments.
Generic: Binary files and archives for SSH, WinRM, and custom deployments.
npm: Node.js packages for SSH, WinRM, and custom deployments.
NuGet: .NET packages for SSH, WinRM, and custom deployments.
Maven: Java artifacts for SSH, WinRM, and custom deployments.
Raw: Raw files for WinRM deployments only.
Harness Artifacts works with all major CD deployment swimlanes. To view the complete list of supported swimlanes and artifact types, go to CD integrations.
Configure a CD service with Harness Artifacts
You can configure the artifact source through the Harness UI or YAML.
Configure artifact details
Fill in the following fields:
Artifact Source Identifier: A name that identifies this artifact source.
Repository Format: The artifact format (for example,
docker).Registry: The Harness Artifacts registry where your images or packages are stored.
Image Path (for Docker) or the equivalent field for your format: The artifact name.
Tag: The version tag, or use a runtime input (
<+input>) to select at deployment time.Digest (optional): A specific image digest for immutable deployments.
The following YAML defines a Kubernetes service that uses a Docker image from Harness Artifacts:
type: Har
Identifies Harness Artifacts as the artifact source type.
registryRef
The identifier of the target registry in Harness Artifacts.
type: docker
The repository format. Supported values: docker, generic, npm, nuget, maven, raw.
imagePath
The name of the image or package in the registry.
tag
The version tag. Use <+input> for runtime selection.
digest
(Optional) An image digest for immutable deployments.
Referencing Harness Artifacts images in containerized step group Run steps
You can reference container images from Harness Artifacts in CD Run steps that execute inside a containerized step group. This is useful when your deployment pipeline needs a custom tool image for scripting or validation tasks.
Permissions
To use Harness Artifacts as an artifact source in CD pipelines:
Your account needs a valid Harness Artifacts license.
The pipeline identity needs appropriate RBAC permissions to access the target registry.
No connector or username is required. The pipeline authenticates as the identity that runs it.
To configure RBAC, go to RBAC and permissions.
Troubleshooting
Next steps
To build and upload artifacts to Harness Artifacts from CI pipelines, go to Harness CI and Harness Artifacts.
To manage registries as infrastructure as code with Terraform, go to Terraform: creating registries as code.
To configure client-side authentication for specific package types, go to the relevant page under Setup.
To manage registries and artifacts from the CLI, go to CLI reference.
Last updated
Was this helpful?