Skip to content

Commit

Permalink
ci: do not build amd64 bit images with qemu
Browse files Browse the repository at this point in the history
This significantly improves performance.
Only build arm64 images after amd64 finished successfully..
  • Loading branch information
jozzsi authored and LaszloGombos committed Oct 21, 2024
1 parent f7ca0f3 commit 3579911
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:

jobs:
arm64:
needs: amd64
if: github.repository == 'dracut-ng/dracut-ng' || vars.CONTAINER == 'enabled'
name: ${{ matrix.config.tag }} on ${{ matrix.config.platform }}
runs-on: ubuntu-latest
Expand All @@ -29,8 +30,8 @@ jobs:
fail-fast: false
matrix:
config:
- { dockerfile: 'Dockerfile-debian', tag: 'debian', platform: 'linux/arm64,linux/amd64' }
- { dockerfile: 'Dockerfile-fedora', tag: 'fedora', platform: 'linux/arm64,linux/amd64' }
- { dockerfile: 'Dockerfile-debian', tag: 'debian', platform: 'linux/arm64' }
- { dockerfile: 'Dockerfile-fedora', tag: 'fedora', platform: 'linux/arm64' }
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -67,6 +68,8 @@ jobs:
fail-fast: false
matrix:
config:
- { dockerfile: 'Dockerfile-debian', tag: 'debian', platform: 'linux/amd64' }
- { dockerfile: 'Dockerfile-fedora', tag: 'fedora', platform: 'linux/amd64' }
- { dockerfile: 'Dockerfile-opensuse', tag: 'opensuse', platform: 'linux/amd64' }
- { dockerfile: 'Dockerfile-arch', tag: 'arch', platform: 'linux/amd64' }
- { dockerfile: 'Dockerfile-gentoo', tag: 'gentoo', platform: 'linux/amd64' }
Expand Down

0 comments on commit 3579911

Please sign in to comment.