Skip to content

Commit

Permalink
Fix docker qemu bug (#1637)
Browse files Browse the repository at this point in the history
* Try the workaround

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>

---------

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu authored Feb 14, 2025
1 parent f8a3129 commit 87084e1
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/build-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: qemu workaround
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand All @@ -90,7 +91,7 @@ jobs:
with:
context: .
file: ci/base-images/sle/Dockerfile.dotnet6
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-bci-dotnet.outputs.tags }}
labels: ${{ steps.meta-bci-dotnet.outputs.labels }}
Expand All @@ -108,7 +109,8 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: qemu workaround
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand All @@ -130,7 +132,7 @@ jobs:
with:
context: .
file: ci/base-images/cdxgen/Dockerfile.dotnet6
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/cyclonedx/cdxgen-dotnet:v11,ghcr.io/cyclonedx/cdxgen-dotnet6:v11
labels: ${{ steps.meta-cdxgen-dotnet.outputs.labels }}
Expand All @@ -141,7 +143,7 @@ jobs:
with:
context: .
file: ci/base-images/cdxgen/Dockerfile.dotnet6
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-cdxgen-dotnet.outputs.tags }}
labels: ${{ steps.meta-cdxgen-dotnet.outputs.labels }}
Expand Down Expand Up @@ -248,7 +250,8 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: qemu workaround
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -286,7 +289,8 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: qemu workaround
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -512,12 +516,12 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: qemu workaround
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 87084e1

Please sign in to comment.