Skip to content

Commit 0a6abb9

Browse files
authored
feat(docker): build both amd64 and arm64 platforms (#13)
1 parent f053f3a commit 0a6abb9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/kubenetmon.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ jobs:
5252
- name: Checkout repository
5353
uses: actions/checkout@v4
5454

55+
- name: Set up Docker
56+
uses: docker/setup-docker-action@v4
57+
with:
58+
daemon-config: |
59+
{
60+
"features": {
61+
"containerd-snapshotter": true
62+
}
63+
}
64+
5565
- name: Determine Docker metadata
5666
id: meta
5767
uses: docker/metadata-action@v5
@@ -61,11 +71,15 @@ jobs:
6171
type=sha
6272
type=ref,event=tag
6373
74+
- name: Set up QEMU
75+
uses: docker/setup-qemu-action@v3
76+
6477
- name: Build Docker image
6578
id: build
6679
uses: docker/build-push-action@v6
6780
with:
6881
context: .
82+
platforms: linux/arm64,linux/amd64
6983
push: false
7084
tags: ${{ steps.meta.outputs.tags }}
7185
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)