GitOps CI integrations
Use Codefresh Hosted GitOps with any popular Continuous Integration (CI) solution, not just with Codefresh CI.
You can connect a third-party CI solution to Codefresh, such as GitHub Actions for example, to take care of common CI tasks such as building/testing/scanning source code, and have Codefresh Hosted GitOps still responsible for the deployment, including image enrichment and reporting.
The integration brings in all the CI information to your images which you can see in the Images dashboard.
See Image enrichment with GitOps integrations.
Codefresh image reporting and enrichment action
To support the integration between Codefresh and third-party CI platforms and tools, we have created dedicated actions for supported CI tools in the Codefresh Marketplace. These actions combine image enrichment and reporting through integrations with issue tracking and container registry tools.
NOTE
You can also configure the integration directly in the Codefresh UI, as described in Connect a third-party CI platform/tool to Codefresh.
Use the action as follows:
- Create your pipeline with your CI platform/tool as you usually do.
- Use existing CI actions for compiling code, running unit tests, security scanning etc.
- Place the final action in the pipeline as the “report image” action provided by Codefresh.
See:
GitHub Action Codefresh report image
Codefresh pipeline Codefresh report image - When the pipeline completes execution, Codefresh retrieves the information on the image that was built and its metadata through the integration names specified (essentially the same data that Codefresh CI would send automatically).
- View the image in Codefresh’s Images dashboard, and in any application in which it is used.
Connect a third-party CI platform/tool to GitOps
Connecting the CI platform/tool to GitOps from the UI includes configuring the required arguments, and then generating and copying the YAML manifest for the report image to your pipeline.
- In the Codefresh UI, on the toolbar, click the Settings icon, and then from the sidebar, select GitOps Integrations.
- Filter by CI tools, then select the CI tool and click Add.
- Define the arguments for the CI tool:
Codefresh pipelines
GitHub Actions
Jenkins
NOTE
For the complete list of arguments you can use, see CI integrations argument reference.
- To generate a YAML snippet with the arguments, on the top-right, click Generate Manifest.
Codefresh validates the generated manifest, and alerts you to undefined arguments that are required, and other errors.
- If required, click Close, update as needed and generate the manifest again.
- If there are no validation errors, click Copy.
- Paste the copied manifest as the last step in your CI pipeline.
CI integration argument reference
The table has been moved to a dedicated standalone topic here.
Related articles
Container registry GitOps integrations
Issue tracking GitOps integrations
CI integrations argument reference