mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #14683] [MERGED] chore: More ideomatic docker-build matrix #62408
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14683
Author: @guenhter
Created: 6/5/2025
Status: ✅ Merged
Merged: 6/5/2025
Merged by: @tjbck
Base:
dev← Head:more-ideomatic-matrix📝 Commits (1)
0fe82d1chore: make usage of matrix more ideomatic📊 Changes
1 file changed (+24 additions, -16 deletions)
View changed files
📝
.github/workflows/docker-build.yaml(+24 -16)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
I wanted to improve the readability in the docker-build.yml and remove a little bit of duplication by using the
matrix.includeconstruct https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow#expanding-or-adding-matrix-configurations.What it does is this:
Usually matrix makes a cross product of all options like this:
gives us 4 variants:
{platform: linux/amd64, runner: ubuntu-latest }{platform: linux/amd64, runner: ubuntu-24.04-arm }{platform: linux/arm64, runner: ubuntu-latest }{platform: linux/arm64, runner: ubuntu-24.04-arm }but with the
includecommand, we can now define tuples:gives us only 2 variants:
{platform: linux/amd64, runner: ubuntu-latest }{platform: linux/arm64, runner: ubuntu-24.04-arm }Changed
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.