From b245e656b930fb275d0714672bf86ea4418dff98 Mon Sep 17 00:00:00 2001 From: Liyang Wang Date: Wed, 19 Jun 2024 09:16:38 -0400 Subject: [PATCH] feat(release.yaml): option to config parallelsim (#49) * feat(release.yaml): option to disable buildkit * test * test * test * builder parallelism * defautl 0 --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15b49ef..a0e627c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,11 @@ on: required: false type: boolean default: false + builder_parallelism: + description: "Set the number of parallel builds to run" + required: false + default: 0 + type: number secrets: GH_TOKEN: required: false @@ -141,6 +146,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + buildkitd-config-inline: | + [worker.oci] + max-parallelism = ${{ inputs.builder_parallelism }} + - name: Login to Global ICR uses: docker/login-action@v3 with: