From 975536895e3e65e295340c4bd7ba20a48884c5aa Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sat, 28 Sep 2024 12:36:09 +0200 Subject: [PATCH] feat: only try and build novueau images if we have a definition for them --- build.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/build.sh b/build.sh index 0b14039..ff50a92 100755 --- a/build.sh +++ b/build.sh @@ -197,17 +197,19 @@ buildx() { docker buildx build --platform ${BUILDX_PLATFORMS} --tag apache/couchdb:$tag_as --push $1 echo "" - # build nouveau - docker buildx rm apache-couchdb-nouveau >/dev/null 2>&1 || true - - echo "Creating the buildx nouveau environment..." - docker buildx create --name apache-couchdb-nouveau --driver docker-container --use - docker buildx use apache-couchdb-nouveau - docker buildx inspect --bootstrap - - echo "Starting buildx nouveau build at $(date)..." - docker buildx build --platform ${BUILDX_PLATFORMS} --tag apache/couchdb:${tag_as}-nouveau --push $1-nouveau - echo "" + if [ -d "$1-novueau" ]; then + # build nouveau + docker buildx rm apache-couchdb-nouveau >/dev/null 2>&1 || true + + echo "Creating the buildx nouveau environment..." + docker buildx create --name apache-couchdb-nouveau --driver docker-container --use + docker buildx use apache-couchdb-nouveau + docker buildx inspect --bootstrap + + echo "Starting buildx nouveau build at $(date)..." + docker buildx build --platform ${BUILDX_PLATFORMS} --tag apache/couchdb:${tag_as}-nouveau --push $1-nouveau + echo "" + fi } usage() {