Code repositories

The Code Repositories self-service feature can be used to register code repositories and use them to create container images in the Container Images self-service feature.

View code repositories

To view a list of code repositories registered by your team, click on Code repositories in the main menu of the App Platform Console while in the Team view. The resulting table lists each repository alongside the following details:

ColumnDescription
NameThe name of the registered code repository used to identify the code repository in App Platform
URLThe URL of the registered code repository
Git serviceThe Git service of the registered code repository (Gitea, GitHub, or GitLab)

Register a code repository

  1. Click Add code repository.

  2. Enter a name for the code repository. This name is used to identify the code repository in App Platform.

  3. Select the Git service that hosts the repository.

    • Gitea (hosted on your App Platform cluster)

    • GitHub (hosted externally)

    • GitLab (hosted externally)

  4. Fill out additional fields based on the selected service.

    • Gitea: Use the drop-down option to select a repository that is available within the team's organization in Gitea. If no repository is available, click on the Create Repository link to be redirected to the team's organization in Gitea and click on New Repository to create a new repository.
    • GitHub or GitLab:
      1. Provide a link (HTTPS or SSH) to the repository.
      2. Select Private if the repository is private.
      3. Optionally select a secret that contains the authentication credentials. Only Sealed Secrets of type basic-auth and ssh-auth are shown. If no secret is available, then first create a Sealed Secret. While creating the basic-auth secret containing Github token, enter any string in the username input field and paste the token in the password input field.
      4. Optionally test the connection to see if the authentication credentials are valid and App Platform can use the credentials to access the private repository.
  5. Click Add Code Repository to save the repository.