Skip to content

Commit f7710ec

Browse files
authored
Merge pull request #1695 from binoyPeries/dev
Add pull latest submodules related docs
2 parents 5dc4da9 + e1e6d2e commit f7710ec

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

en/docs/develop-components/develop-components-with-git.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Choreo provides [Git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodu
4343

4444
For example, when you [work with the Micro Integrator (MI) runtime in Choreo](./work-with-the-micro-integrator-runtime-in-choreo.md), you can use Git submodules to reuse MI templates and sequences across components without duplication.
4545

46-
!!! tip
46+
!!! info "Note"
4747
If you encounter an error stating that you cannot clone a submodule due to insufficient permissions, follow the instructions below to grant the necessary permissions:
4848

4949
- For a personal account:
@@ -62,9 +62,30 @@ For example, when you [work with the Micro Integrator (MI) runtime in Choreo](./
6262
4. Click **Configure** corresponding to **choreo.dev**.
6363
5. Under **Repository Access**, grant access to the necessary repositories.
6464

65-
!!! info "Note"
65+
!!! note
6666
Choreo currently does not support accessing private repositories in other organizations.
6767

68+
#### Automatically pull latest versions of Git submodules
69+
70+
Choreo lets you automatically pull the latest versions of Git submodules from their respective repositories. To enable this feature, follow these steps:
71+
72+
!!! note
73+
Choreo currently supports this feature only for components where the buildpack is **WSO2 MI**.
74+
75+
1. Sign in to the [Choreo Console](https://console.choreo.dev/).
76+
2. In the **Component Listing** pane, click the component for which you want to pull the latest versions of Git submodules.
77+
3. In the left navigation menu, click **Build**.
78+
4. On the **Build** page, click to edit **Build Configurations**.
79+
5. Turn on the **Pull Latest Submodules** toggle.
80+
81+
!!! info "Note"
82+
If you rebuild a previously built commit and it doesn’t reflect the latest changes, follow these steps to ensure the changes are applied to the deployed environment:
83+
84+
1. In the Choreo Console left navigation menu, click **DevOps**, then click **Containers**.
85+
2. Click **Edit** to update the container settings.
86+
3. Select **Always** as the **Image Pull Policy**.
87+
4. Click **Save Changes**.
88+
6889
## Authorize Bitbucket with Choreo
6990

7091
Authorizing using a personal access token (PAT) from Bitbucket grants Choreo the following permissions to perform the respective actions on your behalf within the repository.

0 commit comments

Comments
 (0)