Components in your system design can be connected to code repositories, allowing you to build software executables and even build containers. To do this, Tangram Pro™ can connect to both GitLab and GitHub accounts in order to retrieve source code at build time. You can also authorize your Tangram Pro™ account to access private container registries, either for using a common base container image or to integrate containers which have already been built.
For more information about how to build a container in Tangram Pro™, see Containerize.
You can manage multiple Source Code integrations in your Account or within your Teams (for shared access), and connect them to components in your projects.
Add a Source Code Hosting Service
- Go to Account, or select one of your Teams and go to Source Code
- Click Add Hosting Service
- Select a Hosting Service. If an Enterprise option is selected, you can enter a custom URL like
- Register an OAuth App in your hosting service (see instructions below)
- Enter the Client ID and Secret, and click Submit
- Click Link Account to complete setup. This will redirect you to GitLab or GitHub to authorize access. Click Authorize
Register an App in GitLab
- Log in to your GitLab account
- Click on your profile in the top right corner and select Preferences
- Select Applications on the left
- Add new application
- Enter a name
- Copy the Callback URL from Project Settings and paste it in the Redirect URI field in GitLab
- Select the api scope
- Click Save application
- Copy the Application ID from GitLab and paste it in the Client ID field in Project Settings
- Copy the Secret from GitLab and paste it in the Client Secret field in Project Settings
Register an App in GitHub
- Log in to your GitHub account
- Click on your profile in the top right corner and select Settings
- Select Developer setting on the left (towards the bottom of the list)
- Select OAuth Apps on the left
- Click New OAuth App
- Enter a name
- Copy the Homepage URL from Project Settings and paste it in the Homepage URL field in GitHub
- Copy the Callback URL from Project Settings and paste it in the Authorization callback URL field in GitHub
- Click Register application
- Copy the Client ID from GitHub and paste it in the Client ID field in Project Settings
- Copy the Client Secret from GitHub and paste it in the Client Secret field in Project Settings
You can unlink your GitLab/GitHub account by clicking the Unlink button. This will remove authorization, but save the configuration.
Remove Source Code Host
You can remove your GitLab/GitHub account by clicking the Remove button. This will remove the configuration.
Using Source Code
Within projects, you can connect components with your GitLab and GitHub accounts and access their repositories. For more information see Design: Link Source Code Repository.