Skip to main content
⏳ Estimated read time: 3 min read

Repositories

To build your appStacks, StackGen needs access to your repositories, whether you're working with multiple microservices or a single monolith. To connect these repositories, click Repositories from the left hand navigation panel. This will open the repositories page, where you can view and manage your connected repositories.

Connect Your Repository With StackGen

You can connect StackGen with the application source code repository in three ways:

Connect and Authenticate Your Source Code Repository With StackGen

Click to view

Follow these steps to connect and authenticate your Source Code Repository with StackGen:

  1. From the StackGen Home page, click Repositories from the left hand navigation panel.
  2. Click + Add Repositories.
  3. Click Configure link next to the Source Code Management (SCM) provider where your host the source code.
  4. Authorize your SCM provider, and click Proceed.
  5. Select the repositories you want to use with StackGen, and click Onboard.

You should now see the repositories you've chosen in a list.

Use a Personal Access Token (PAT) to Connect With StackGen

Click to view

Follow these steps use a Personal Access Token (PAT) to connect your repository with StackGen:

You can generate a Personal Access Token within your repository provider's console and grant read-only access to your repositories. StackGen supports connecting with the following repositories using PAT:

  1. From the StackGen Home page, click Repositories from the left hand navigation panel.
  2. Click + Add Repositories.
  3. Click Add Repo using Personal Access Token (PAT).
  4. Refer to your repository provider's documentation for generating the Personal Access Token (PAT) and enter the same in the respective fields.
  5. Click Proceed.
  6. Select the repositories that you want to add to your appStack and click Onboard.

You should now see the repositories you've chosen in a list.

Provide the URL to a public repository that hosts your IaC image files

Click to view

If your infrastructure code image is hosted on a public repository, you can provide the URL for it to connect the repository with StackGen. Follow these steps:

  1. From the StackGen Home page, click Repositories from the left hand navigation panel.
  2. Click + Add Repositories.
  3. Click Continue to add Public Repository.
  4. Enter the following details for your Public git repository URL:
  • Public Git repository URL: Enter the URL for the public repository where your infrastructure is hosted.
  • + Add more: Click this to add the URLs for multiple infrastructure images that are hosted across various public repositories.
  1. Click Onboard once done.

You should now see the repositories you've chosen in a list.

Remove a Connected Repository From StackGen

To remove a connected repository from StackGen, follow these steps:

  1. From the StackGen Home page, click Repositories from the left hand navigation panel.
  2. Select the checkbox next to the repositories to remove the desired repository from StackGen.
  3. Click Remove.
caution

Ensure your appStacks do not use the repositories you want to remove. If they do, delete the appStacks before removing repositories.