File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ RUN git config --global http.postBuffer 524288000
2222RUN git clone https://github.com/ToolJet/ToolJet.git .
2323
2424# The branch name needs to be changed the branch with modularisation in CE repo
25+ RUN git checkout ${BRANCH_NAME}
26+
27+ RUN git submodule update --init --recursive
28+
29+ # Checkout the same branch in submodules if it exists, otherwise stay on default branch
2530RUN git submodule foreach " \
2631 if git show-ref --verify --quiet refs/heads/${BRANCH_NAME} || \
2732 git ls-remote --exit-code --heads origin ${BRANCH_NAME}; then \
@@ -31,11 +36,8 @@ RUN git submodule foreach " \
3136 git checkout main; \
3237 fi"
3338
34- RUN git submodule update --init --recursive
35-
36- # Checkout the same branch in submodules if it exists, otherwise stay on default branch
37- RUN git submodule foreach 'git checkout ${BRANCH_NAME} || true'
3839
40+ # Scripts for building
3941COPY ./package.json ./package.json
4042
4143# Building ToolJet plugins
You can’t perform that action at this time.
0 commit comments