Skip to content

Commit

Permalink
Pin QEMU binfmt image to work around a bug with ARM64 images
Browse files Browse the repository at this point in the history
This patch pins the binfmt image used by the
setup-qemu-action to an older image to avoid a bug when
building ARM64 images.

See docker/setup-qemu-action#198
for more details.
  • Loading branch information
emerkle826 committed Feb 17, 2025
1 parent 64bc154 commit 903f024
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ jobs:
tags: type=sha,format=long,prefix=${{ matrix.cassandra-version }}-${{ matrix.base-platform }}-
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Cassandra ${{ matrix.cassandra-version }}-${{ matrix.base-platform }}
Expand Down Expand Up @@ -182,6 +184,8 @@ jobs:
tags: type=sha,format=long,prefix=${{ matrix.dse-version }}-${{ matrix.base-platform }}-
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build DSE ${{ matrix.dse-version }}-${{ matrix.base-platform }}
Expand Down Expand Up @@ -250,6 +254,8 @@ jobs:
tags: type=sha,format=long,prefix=${{ matrix.dse-version }}-${{ matrix.base-platform }}-
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# buildx needs this to see local registry
Expand Down Expand Up @@ -318,6 +324,8 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -383,6 +391,8 @@ jobs:
run: mvn -B -q package -DskipTests -Dskip.surefire.tests -DskipOpenApi
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -449,6 +459,8 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly_image_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ github.sha }}-${{ hashFiles('**/pom.xml') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -188,6 +190,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ github.sha }}-${{ hashFiles('**/pom.xml') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -242,6 +246,8 @@ jobs:
# - uses: actions/checkout@v4
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# with:
# image: tonistiigi/binfmt:qemu-v7.0.0-28
# - name: Setup Buildx
# id: buildx
# uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -328,6 +334,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ github.sha }}-${{ hashFiles('**/pom.xml') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -414,6 +422,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ github.sha }}-${{ hashFiles('**/pom.xml') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -500,6 +510,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ github.sha }}-${{ hashFiles('**/pom.xml') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -564,6 +576,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ github.sha }}-${{ hashFiles('**/pom.xml') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -624,6 +638,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ github.sha }}-${{ hashFiles('**/pom.xml') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 903f024

Please sign in to comment.