From 78645acdd71886b21edf76010e00d0a4e63e7e5a Mon Sep 17 00:00:00 2001 From: BtbN Date: Sat, 13 Nov 2021 16:25:52 +0100 Subject: [PATCH] Limit parallelism of buildx builds --- .github/buildkit.toml | 2 ++ .github/workflows/build.yml | 2 ++ .github/workflows/pr.yml | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 .github/buildkit.toml diff --git a/.github/buildkit.toml b/.github/buildkit.toml new file mode 100644 index 0000000..ff6039f --- /dev/null +++ b/.github/buildkit.toml @@ -0,0 +1,2 @@ +[worker.oci] + max-parallelism = 4 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63414e3..efed780 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,6 +75,8 @@ jobs: uses: actions/checkout@v2 - name: Install buildx uses: docker/setup-buildx-action@v1 + with: + config: .github/buildkit.toml - name: Generate Dockerfile run: ./generate.sh ${{ matrix.target }} ${{ matrix.variant }} - name: Login to Docker diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e3ce358..885dd34 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,6 +22,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Install buildx + uses: docker/setup-buildx-action@v1 + with: + config: .github/buildkit.toml - name: Build Image run: ./makeimage.sh ${{ matrix.target }} ${{ matrix.variant }} - name: Build ffmpeg