Skip to content

Commit

Permalink
ci: downgrade ubuntu version and docker/Qemu version
Browse files Browse the repository at this point in the history
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04 and use Qemu v7.

Fixes confidential-containers#715

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Feb 21, 2025
1 parent 0bf0060 commit b9d4805
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-as-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- target_arch: aarch64
target_platform: linux/arm64
build_platform: linux/amd64
instance: ubuntu-24.04
instance: ubuntu-22.04
verifier: cca-verifier
runs-on: ${{ matrix.instance }}

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/build-kbs-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- target_arch: aarch64
target_platform: linux/arm64
build_platform: linux/amd64
instance: ubuntu-24.04
instance: ubuntu-22.04

runs-on: ${{ matrix.instance }}

Expand All @@ -68,6 +68,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# TODO: remove this when https://github.com/actions/runner-images/issues/11471
# is fully resolved
- name: Set up QEMU v7 for Arm
if: matrix.target_arch == 'aarch64'
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28

- name: Login to GHCR Container Registry
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit b9d4805

Please sign in to comment.