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
Gitea
if the code repository is hosted by the in-cluster self-hosted Git service powered by Gitea. -
Use
GitHub
if the code repository is hosted by the external GitHub Git service. -
Use
GitLab
if 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 Repository
link to be redirected to the Team's organization in Gitea and click onNew Repository
to 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
Private
If the repository in GitHub is private. -
Optionally: Select a secret that contains the authentication credentials. Only Sealed Secrets of type
basic-auth
andssh-auth
will 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
Private
If the repository in GitLab is private. -
Optionally: Select a secret that contains the authentication credentials. Only Sealed Secrets of type
basic-auth
andssh-auth
will 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 3 days ago