Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

ci: support multi-arch build and publish (#656)

Torgny Bjers181f96d250f6
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index 85770841..21c32c9e 100644
--- a/.github/workflows/publish.yaml
+++ b/.github/workflows/publish.yaml
@@ -32,7 +32,7 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
+
- name: Install dependencies
run: npm ci
@@ -42,6 +42,12 @@ jobs:
- name: Build project
run: npm run build
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v3
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
@@ -50,10 +56,11 @@ jobs:
tags: |
type=semver,pattern={{version}}
- - name: Build and push Docker image
+ - name: Build and push multi-arch Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
+ platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}