Limit parallelism of buildx builds

This commit is contained in:
BtbN 2021-11-13 16:25:52 +01:00
parent 1cd3f207c5
commit 78645acdd7
3 changed files with 8 additions and 0 deletions

2
.github/buildkit.toml vendored Normal file
View file

@ -0,0 +1,2 @@
[worker.oci]
max-parallelism = 4

View file

@ -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

View file

@ -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