Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: only try and build novueau images if we have a definition for them #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down