Skip to content

Commit e279a57

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/docker.yml

+10
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,20 @@ 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+
4755
- name: Build & push the base image to local registry
4856
uses: docker/[email protected]
4957
with:
5058
context: .
5159
push: true
60+
platforms: linux/amd64,linux/arm64
5261
tags: localhost:5000/ubuntu-base:latest
5362

5463
- name: Write the Dockerfile for the ${{ matrix.version }}-${{ matrix.arch }} runtime
@@ -69,5 +78,6 @@ jobs:
6978
with:
7079
context: .
7180
push: true
81+
platforms: linux/amd64,linux/arm64
7282
file: ${{ matrix.version }}-${{ matrix.arch }}.Dockerfile
7383
tags: ghcr.io/${{ github.repository }}/runtime:${{ matrix.version }}-${{ matrix.arch }}${{ env.additional_tags }}

0 commit comments

Comments
 (0)