Skip to content

Commit

Permalink
feat: add -nouveau branch to buildx subcommand only
Browse files Browse the repository at this point in the history
  • Loading branch information
janl authored and nickva committed Sep 27, 2024
1 parent af3a869 commit ad64a8a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ buildx() {
fi
docker buildx rm apache-couchdb >/dev/null 2>&1 || true


echo "Creating the buildx environment..."
docker buildx create --name apache-couchdb --driver docker-container --use
docker buildx use apache-couchdb
Expand All @@ -197,6 +196,18 @@ buildx() {
echo "Starting buildx build at $(date)..."
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-nouveau:$tag_as --push $1-nouveau
echo ""
}

usage() {
Expand Down

0 comments on commit ad64a8a

Please sign in to comment.