Skip to content

Commit 71f2f0e

Browse files
authored
Merge pull request element-hq#12612 from Pestdoktor/docker-cleanup
docker: optimize custom sdk builds
2 parents 872a7a7 + f5bd5a3 commit 71f2f0e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/docker-link-repos.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,15 @@ then
2020
fi
2121

2222
echo "Linking js-sdk"
23-
git clone $JS_SDK_REPO js-sdk
23+
git clone --depth 1 --branch $JS_SDK_BRANCH $JS_SDK_REPO js-sdk
2424
cd js-sdk
25-
git checkout $JS_SDK_BRANCH
2625
yarn link
2726
yarn --network-timeout=100000 install
2827
cd ../
2928

3029
echo "Linking react-sdk"
31-
git clone $REACT_SDK_REPO react-sdk
30+
git clone --depth 1 --branch $REACT_SDK_BRANCH $REACT_SDK_REPO react-sdk
3231
cd react-sdk
33-
git checkout $REACT_SDK_BRANCH
3432
yarn link
3533
yarn link matrix-js-sdk
3634
yarn --network-timeout=100000 install

0 commit comments

Comments
 (0)