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:
| Column | Description |
|---|---|
| Name | The name of the registered code repository used to identify the code repository in the App Platform |
| URL | The URL of the registered code repository |
| Git service | The Git service of the registered code repository (Gitea, GitHub or GitLab) |
Register a code repository
-
Click Add code repository.
-
Enter a name for the code repository. This name is used to identify the code repository in the App Platform.
-
Select the Git service:
-
Use
Giteaif the code repository is hosted by the in-cluster self-hosted Git service powered by Gitea. -
Use
GitHubif the code repository is hosted by the external GitHub Git service. -
Use
GitLabif the code repository is hosted by the external GitLab Git 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 Repositorylink to be redirected to the Team's organization in Gitea and click onNew Repositoryto create a new repository. -
Click Add Code Repository to save the repository.
GitHub
-
Provide a link (HTTPS or SSH) to a repository in GitHub.
-
Optionally: Select
PrivateIf the repository in GitHub is private. -
Optionally: Select a secret that contains the authentication credentials. Only Sealed Secrets of type
basic-authandssh-authwill be shown. If no secret is available, then first create a Sealed Secret. -
Optionally: Test the connection to see if the authentication credentials are valid and App Platform can use the credentials to access the private repository.
-
Click Add Code Repository to save the repository. The code repository can be added even if the test connection fails.
GitLab
-
Provide a link (HTTPS or SSH) to a repository in GitLab.
-
Optionally: Select
PrivateIf the repository in GitLab is private. -
Optionally: Select a secret that contains the authentication credentials. Only Sealed Secrets of type
basic-authandssh-authwill be shown. If no secret is available, then first create a Sealed Secret. -
Optionally: Test the connection to see if the authentication credentials are valid and App Platform can use the credentials to access the private repository.
-
Click Add Code Repository to save the repository. The code repository can be added even if the test connection fails.
Updated 5 months ago
