From a93e92714ff2e77602dc9842479750c68875a7e5 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sat, 14 Sep 2024 23:10:04 +0200 Subject: [PATCH] Add ARM support --- .github/workflows/ci.yml | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d58d919..08743a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ jobs: uses: sigstore/cosign-installer@v3 - name: Setup Docker buildx uses: docker/setup-buildx-action@v3 + - name: Setup QEMU + uses: docker/setup-qemu-action@v3 - name: Log into registry ${{ env.REGISTRY }} if: github.event_name != 'pull_request' uses: docker/login-action@v3 @@ -51,6 +53,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: linux/arm64, linux/amd64 cache-from: type=gha cache-to: type=gha,mode=max - name: Sign the published Docker image diff --git a/Dockerfile b/Dockerfile index 20081eb..5aaa9eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:22-jre-alpine +FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:22-jre-alpine WORKDIR /usr/app COPY plugin/build/install/bot-plugin .