Skip to content

Commit 09b2f89

Browse files
authored
fix git issue cloud server dockerifle (#13299)
1 parent e666435 commit 09b2f89

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docker/cloud/cloud-server.Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ RUN git config --global http.postBuffer 524288000
2222
RUN 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
2530
RUN 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
3941
COPY ./package.json ./package.json
4042

4143
# Building ToolJet plugins

0 commit comments

Comments
 (0)