Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 865c0fb

Browse files
committed
docker: Reintroduce cross-platform builds
1 parent 645fd43 commit 865c0fb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main-docker.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env:
1616
DOCKERHUB_REGISTRY: docker.io
1717
IMAGE_NAME: ${{ github.repository }}
1818
TEST_TAG: triliumnext/notes:test
19+
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
1920

2021
jobs:
2122
test_docker:
@@ -72,8 +73,10 @@ jobs:
7273
packages: write
7374
attestations: write
7475
id-token: write
75-
steps:
76+
steps:
7677
- uses: actions/checkout@v4
78+
- name: Set up QEMU
79+
uses: docker/setup-qemu-action@v3
7780
- name: Extract metadata (tags, labels) for GHCR image
7881
id: ghcr-meta
7982
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
@@ -107,7 +110,8 @@ jobs:
107110
id: ghcr-push
108111
with:
109112
context: .
110-
push: true
113+
platforms: ${{ env.PLATFORMS }}
114+
push: true
111115
tags: ${{ steps.ghcr-meta.outputs.tags }}
112116
labels: ${{ steps.ghcr-meta.outputs.labels }}
113117
cache-from: type=gha
@@ -129,6 +133,7 @@ jobs:
129133
id: dh-push
130134
with:
131135
context: .
136+
platforms: ${{ env.PLATFORMS }}
132137
push: true
133138
tags: ${{ steps.dh-meta.outputs.tags }}
134139
labels: ${{ steps.dh-meta.outputs.labels }}

0 commit comments

Comments
 (0)