Skip to content

Commit 17aa0f6

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

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/docker.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,27 @@ 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: .
51-
push: true
52-
tags: localhost:5000/ubuntu-base:latest
59+
load: true
60+
platforms: linux/amd64,linux/arm64
61+
tags: ubuntu-base:latest
5362

5463
- name: Write the Dockerfile for the ${{ matrix.version }}-${{ matrix.arch }} runtime
5564
run: |
5665
cat <<EOF > ${{ matrix.version }}-${{ matrix.arch }}.Dockerfile
5766
# syntax = docker/dockerfile:experimental
58-
FROM localhost:5000/ubuntu-base:latest
67+
FROM ubuntu-base:latest
5968
RUN flatpak install -y --noninteractive appcenter io.elementary.Platform/${{ matrix.arch }}/${{ matrix.version }} io.elementary.Sdk/${{ matrix.arch }}/${{ matrix.version }}
6069
EOF
6170
@@ -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)