Skip to content

Commit 7ead26d

Browse files
committed
docker: additionally push arm64 compatible images
1 parent 4d44bb9 commit 7ead26d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/docker.yml

+12
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,22 @@ jobs:
4040
username: ${{ github.actor }}
4141
password: ${{ secrets.GITHUB_TOKEN }}
4242

43+
- name: Set up QEMU
44+
uses: docker/setup-qemu-action@v3
45+
with:
46+
platforms: arm64
47+
48+
- name: Set up Docker Buildx
49+
uses: docker/setup-buildx-action@v3
50+
with:
51+
driver-opts: network=host
52+
4353
- name: Build & push the base image to local registry
4454
uses: docker/[email protected]
4555
with:
4656
context: .
4757
push: true
58+
platforms: linux/amd64,linux/arm64
4859
tags: localhost:5000/ubuntu-base:latest
4960

5061
- name: Write the Dockerfile for the ${{ matrix.version }}-${{ matrix.arch }} runtime
@@ -65,5 +76,6 @@ jobs:
6576
with:
6677
context: .
6778
push: true
79+
platforms: linux/amd64,linux/arm64
6880
file: ${{ matrix.version }}-${{ matrix.arch }}.Dockerfile
6981
tags: ghcr.io/${{ github.repository }}/runtime:${{ matrix.version }}-${{ matrix.arch }}${{ env.additional_tags }}

0 commit comments

Comments
 (0)