Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

ci: add ARM64 support to Docker CI matrix (#147)

Andrii Andrushchyshynd60fd3ab6217
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index 947bd0851..1abbc960f 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -7,7 +7,17 @@ on:
jobs:
build-and-push:
- runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ include:
+ - platform: linux/amd64
+ runner: ubuntu-24.04
+ - platform: linux/arm64
+ runner: ubuntu-24.04-arm
+
+ runs-on: ${{ matrix.runner || 'ubuntu-24.04' }}
+
permissions:
contents: read
packages: write
@@ -16,6 +26,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -41,6 +54,7 @@ jobs:
context: ./server #
file: ./server/Dockerfile
push: true
+ platforms: ${{ matrix.platform }} # linux/amd64 or linux/arm64
tags: ${{ steps.meta_backend.outputs.tags }}
labels: ${{ steps.meta_backend.outputs.labels }}
# # Optional: Enable build cache for potentially faster builds
@@ -65,6 +79,7 @@ jobs:
context: ./client
file: ./client/Dockerfile
push: true
+ platforms: ${{ matrix.platform }} # linux/amd64 or linux/arm64
tags: ${{ steps.meta_client.outputs.tags }}
labels: ${{ steps.meta_client.outputs.labels }}
# # Optional: Enable build cache for potentially faster builds