core: only rebuild on changes

This commit is contained in:
chandi
2020-07-30 12:11:34 +02:00
parent c1a0920fe7
commit 6d6d42b27f
2 changed files with 10 additions and 8 deletions

View File

@ -13,6 +13,9 @@ then
RESTARTED=1 ./scripts/upgrade
else
# update changed environment variable
sed -i 's/EXTERNAL_IP=/EXTERNAL_IPv4=/' .env
echo ""
echo "# pull newest bbb-webrtc-sfu"
git submodule update --remote
@ -25,13 +28,8 @@ else
echo ""
echo "# rebuild images"
# rebuild core without caching, since the deb-packages might have changed
./scripts/compose build --pull --no-cache core
# rebuild everything else only when modified
./scripts/compose build --pull
sed -i 's/EXTERNAL_IP=/EXTERNAL_IPv4=/' .env
# rebuild everything which got modified
./scripts/compose build --pull
COMMIT_HASH=$(git rev-parse --short HEAD)
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)