Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrations page for AR #8804

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Platform Integrations",
"collapsible": "true",
"collapsed": "true",
"link": { "type": "generated-index", "title": "Platform Integrations" },
"customProps": {},
"position": 40
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Artifact Registry and Continuous Delivery
description: Deep dive into the native integrations between the Artifact Registry and Continuous Delivery module.
sidebar_position: 10
---

Learn how to use Artifact Registry with the Continuous Delivery (CD) module.

## Integrated Artifact Sources

Artifact Registry is a [native artifact source](/docs/continuous-delivery/x-platform-cd-features/services/artifact-sources) for [CD services](/docs/continuous-delivery/x-platform-cd-features/services/services-overview).

When creating a service, follow these steps to add a Harness Artifact Registry as your artifact source:

1. Under **Artifacts**, click **+ Add Artifact Source**.
2. Choose **Harness Artifact Registry** as your repository type.
3. Enter any name you would like under **Artifact Source Identifier**.
4. Choose your **Registry**.
5. Select your image from the registry. If the image isn't in the registry yet, you can write in the image name in as well.
6. Enter the image tag or tag regex.
7. Optionally, choose the image digest for the specific image/tag combo that you chose.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Artifact Registry and Continuous Integrations
description: Deep dive into the native integrations between the Artifact Registry and the Continuous Integration module.
sidebar_position: 20
---

Learn how to use Artifact Registry with the Continuous Integration (CI) module.

## Build and push to Docker with Artifact Registry

Harness CI offers a [Build and push to Docker](/docs/continuous-integration/use-ci/build-and-upload-artifacts/build-and-push/build-and-push-to-docker-registry) step that allows you to build and push a docker image to any registry. Usually, this requires a connector to the registry you want, but with AR you can connect to a registry directly, within the platform, without any complicated setup.

To do so, follow these steps:

1. Navigate to your pipeline, and enter your `Build` stage.
2. Create a new `Build and Push an image to Docker Registry` step.
3. `Harness Artifact Registry` is the default registry type. Ensure that it is selected, and move to the next step.
4. Select your registry under `Registry`. Clicking the field will show a list of available registries.
5. Once your registry is selected, a list of images will populate under `Image Name`. Choose one, or type the name of a new image that you are building the first time.
6. Enter any image tags you wish under `Tags`.
7. Click `Apply Changes` at the top right and you are done! No connectors needed.
Loading