Skip to content

Commit 6e04a3b

Browse files
committed
docker: additionally push arm64 compatible images
1 parent 6b5b10f commit 6e04a3b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/docker.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,22 @@ jobs:
4444
username: ${{ github.actor }}
4545
password: ${{ secrets.GITHUB_TOKEN }}
4646

47+
- name: Set up QEMU
48+
uses: docker/setup-qemu-action@v3
49+
with:
50+
platforms: arm64
51+
52+
- name: Set up Docker Buildx
53+
uses: docker/setup-buildx-action@v3
54+
with:
55+
driver-opts: network=host
56+
4757
- name: Build & push the base image to local registry
4858
uses: docker/[email protected]
4959
with:
5060
context: .
51-
push: true
61+
load: true
62+
platforms: linux/amd64,linux/arm64
5263
tags: localhost:5000/ubuntu-base:latest
5364

5465
- name: Write the Dockerfile for the ${{ matrix.version }}-${{ matrix.arch }} runtime
@@ -69,5 +80,6 @@ jobs:
6980
with:
7081
context: .
7182
push: true
83+
platforms: linux/amd64,linux/arm64
7284
file: ${{ matrix.version }}-${{ matrix.arch }}.Dockerfile
7385
tags: ghcr.io/${{ github.repository }}/runtime:${{ matrix.version }}-${{ matrix.arch }}${{ env.additional_tags }}

0 commit comments

Comments
 (0)