diff --git a/docs/artifact-registry/platform-integrations/_category_.json b/docs/artifact-registry/platform-integrations/_category_.json new file mode 100644 index 00000000000..be342cbd962 --- /dev/null +++ b/docs/artifact-registry/platform-integrations/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Platform Integrations", + "collapsible": "true", + "collapsed": "true", + "link": { "type": "generated-index", "title": "Platform Integrations" }, + "customProps": {}, + "position": 40 +} diff --git a/docs/artifact-registry/platform-integrations/cd-ar-integrations.md b/docs/artifact-registry/platform-integrations/cd-ar-integrations.md new file mode 100644 index 00000000000..f69ff6465fa --- /dev/null +++ b/docs/artifact-registry/platform-integrations/cd-ar-integrations.md @@ -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. diff --git a/docs/artifact-registry/platform-integrations/ci-ar-integrations.md b/docs/artifact-registry/platform-integrations/ci-ar-integrations.md new file mode 100644 index 00000000000..6f7f2afb1d2 --- /dev/null +++ b/docs/artifact-registry/platform-integrations/ci-ar-integrations.md @@ -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.