Skip to content

Commit 7d04def

Browse files
authored
Merge pull request #41 from OpenCHAMI/synackd/ci/add-arm
ci: add arm64 container builds
2 parents dac6547 + e4ae31b commit 7d04def

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ on:
66
- main
77
paths:
88
- 'dockerfiles/dnf/Dockerfile'
9+
- 'dockerfiles/dnf/Dockerfile.el9'
910
tags:
1011
- 'v*.*.*'
1112
pull_request:
1213
branches:
1314
- main
1415
paths:
1516
- 'dockerfiles/dnf/Dockerfile'
17+
- 'dockerfiles/dnf/Dockerfile.el9'
1618
workflow_dispatch:
1719

1820
jobs:
@@ -26,8 +28,11 @@ jobs:
2628
- name: Checkout repository
2729
uses: actions/checkout@v3
2830

31+
- name: Set up QEMU
32+
uses: docker/setup-qemu-action@v3
33+
2934
- name: Set up Docker Buildx
30-
uses: docker/setup-buildx-action@v2
35+
uses: docker/setup-buildx-action@v3
3136

3237
- name: Log in to GitHub Container Registry
3338
uses: docker/login-action@v2
@@ -61,6 +66,7 @@ jobs:
6166
uses: docker/build-push-action@v3
6267
with:
6368
context: .
69+
platforms: linux/amd64,linux/arm64
6470
file: dockerfiles/dnf/Dockerfile
6571
push: true
6672
tags: ghcr.io/openchami/image-build:${{ steps.set_tag.outputs.tag }}
@@ -71,6 +77,7 @@ jobs:
7177
uses: docker/build-push-action@v3
7278
with:
7379
context: .
80+
platforms: linux/amd64,linux/arm64
7481
file: dockerfiles/dnf/Dockerfile.el9
7582
push: true
7683
tags: ghcr.io/openchami/image-build-el9:${{ steps.set_tag.outputs.tag }}

0 commit comments

Comments
 (0)