Quick start: Creating a Git Source

Add a Git Source to Runtimes to store application manifests

In this quick start, we’ll focus on creating a Git Source for the GitOps Runtime you installed.

Why create a Git Source?

A Git Source is a unique entity for use with GitOps Runtimes in Codefresh.
The Git Source connects to a Git repository within your organization. The Git repository referenced by the Git Source stores application manifests and other resources which are always synced to the cluster. You can manage the Git Source itself as an Argo CD application.

For details, see Managing Git Sources in GitOps Runtimes.

Requirements

Create a Git Source

Create the Git Source for the Runtime installed to reference the Git repo corresponding to the Git Source.
If you don’t have a repo, you can automatically create it at the same time as the Git Source.

Step-by-step
  1. In the Codefresh UI, on the toolbar, click the Settings icon.
  2. From Runtimes in the sidebar, select GitOps Runtimes.
  3. In the List View, select the Runtime you installed earlier, and then click the Git Sources tab.
  4. Click Create Git Source, and in the Create Git Source panel, define the settings for the Git Source.
    • Git Source Name: A name for the Git Source, demo-trio-gitsource for the quick start to tie in with set of applications we’ll create later.
    • Type: Retain Standard Git Source.
    • Source:
      • Select Create a new repository to automatically create the repository in GitHub if it doesn’t exist.
      • Repository: Enter the full path to the repository, including the .git extension.
        For the quick start, we’ll define https://github.com/codefresh-sandbox/demo-git-source.git.
      • Branch: main.
        Leave all other settings as is.

Runtime quick start: Create Git Source

Runtime quick start: Create Git Source
  1. Click + Create.

Here’s an example of the Git repository referenced in GitHub by the Git source.

Runtime quick start: Git repo for Git Source

Runtime quick start: Git repo for Git Source

What’s next

With a Git Source set up, you are now ready to create applications. You’re probably eager to dive into applications, and that’s what we’ll do in the next quick start.

Quick start: Creating Products and applications