GitOps container registry integrations
Codefresh can integrate with popular container registries such as Docker Hub, JFrog Artifactory, and more.
Adding a container registry integration in Codefresh allows you to reference the integration in third-party CI platforms/tools such as GitHub Actions and Codefresh pipelines by the name of the registry integration, instead of explicit credentials. See Image enrichment with integrations and CI integrations.
You add a container registry integration in Codefresh by:
- Defining the integration name
- Selecting the runtime or runtimes it is shared with
- Defining the arguments
- Testing the connection
- Committing the changes
You can add more than one integration for the same registry. Once added, Codefresh displays the list of existing integrations with their sync status. You can edit or delete any registry integration.
Configure container registry integrations for GitOps in Codefresh
Configure the settings for a GitOps container registry integration in Codefresh.
- In the Codefresh UI, on the toolbar, click the Settings icon, and then from the sidebar, select GitOps Integrations.
- Filter by Container Registry, select the container registry, and click Configure.
- If you already have integrations, click Add.
- Define the arguments for the container registry:
Amazon ECR
Docker Hub
GitHub Container Registry
JFrog Artifactory
Quay - To test the connection to the container registry before committing the changes, click Test Connection.
- To confirm, click Commit. It may take a few moments for the new integration to be synced to the cluster before it appears in the list.
Integration resource in shared configuration repo
The integration resource for the container registry is created in the Git repository with the shared configuration, within resources
.
The exact location depends on whether the integration is shared with all or specific runtimes:
- All runtimes: Created in
resources/all-runtimes-all-clusters/
- Selected runtimes: Created in
resources/runtimes/<runtime-name>/
View container registry integrations for GitOps
Selecting a container registry integration displays the existing integrations for that registry in Codefresh.
The example below shows integrations for JFrog Artifactory.
Every container registry integration displays the following information:
- Name of the integration
- Runtime or runtimes it is shared with
- Sync status
Edit/delete container registry integrations for GitOps
If you have existing integrations, you can change the connection details, or delete an integration.
IMPORTANT
Deleting an integration deletes the integration resource from the Shared Configuration Repository, its secrets, and the CI workflows that
use it.
- In the Codefresh UI, on the toolbar, click the Settings icon, and then from the sidebar, select GitOps Integrations.
- Filter by Container Registry, and select the specific container registry integration.
- In the row with the integration to edit or delete, click the three dots and select Edit or Delete.
- To edit, update the Username and Password fields, and click Test Connection to verify the account credentials.
- To delete, type DELETE in the text box as instructed.
Related articles
CI GitOps integrations
Issue-tracking GitOps integrations
Shared Configuration Repository
Images
Monitoring applications