Speedup building docker images in CI (#3467)

This should significantly speedup building the pinecone and yggdrasil
demos, as they now reuse the new `dendrite:buildcache`, which already
builds all binaries.
This commit is contained in:
Till 2024-12-18 11:23:41 +01:00 committed by GitHub
parent a8d842bd05
commit c56b2bfe33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 48 additions and 62 deletions

View file

@ -6,6 +6,9 @@ TAG=${1:-latest}
echo "Building tag '${TAG}'"
docker build . --target monolith -t matrixdotorg/dendrite-monolith:${TAG}
docker build . --target demo-pinecone -t matrixdotorg/dendrite-demo-pinecone:${TAG}
docker build . --target demo-yggdrasil -t matrixdotorg/dendrite-demo-yggdrasil:${TAG}
docker build -t ghcr.io/element-hq/dendrite:buildcache --target build .
docker build -t ghcr.io/element-hq/dendrite-monolith:${TAG} .
docker build -t ghcr.io/element-hq/dendrite-demo-yggdrasil:${TAG} -f build/docker/Dockerfile.demo-yggdrasil .
docker build -t ghcr.io/element-hq/dendrite-demo-pinecone:${TAG} -f build/docker/Dockerfile.demo-pinecone .