Fix Docker build for develop and publish a /version file
Fixes https://github.com/vector-im/riot-web/issues/10426
This commit is contained in:
parent
b4829fd3d4
commit
726bf35b76
4 changed files with 34 additions and 1 deletions
|
@ -2,6 +2,17 @@
|
|||
|
||||
set -ex
|
||||
|
||||
# Automatically link to develop if we're building develop, but only if the caller
|
||||
# hasn't asked us to build something else
|
||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
if [ $USE_CUSTOM_SDKS == false ] && [ $BRANCH == 'develop' ]
|
||||
then
|
||||
echo "using develop dependencies for react-sdk and js-sdk"
|
||||
USE_CUSTOM_SDKS=true
|
||||
JS_SDK_BRANCH='develop'
|
||||
REACT_SDK_BRANCH='develop'
|
||||
fi
|
||||
|
||||
if [ $USE_CUSTOM_SDKS == false ]
|
||||
then
|
||||
echo "skipping react-sdk and js-sdk installs: USE_CUSTOM_SDKS is false"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue