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 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 App Platform.
-
Select the Git service that hosts the repository.
-
Gitea (hosted on your App Platform cluster)
-
GitHub (hosted externally)
-
GitLab (hosted externally)
-
-
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:
- Provide a link (HTTPS or SSH) to the repository.
- Select Private if the repository is private.
- Optionally select a secret that contains the authentication credentials. Only Sealed Secrets of type
basic-authandssh-authare shown. If no secret is available, then first create a Sealed Secret. While creating thebasic-authsecret containing Github token, enter any string in the username input field and paste the token in the password input field. - 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.
Updated 18 days ago
