From 7278c4d3fa83b41bbfaab9a4158c14d46ec4caee Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 11 May 2023 17:26:46 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=BE=20arm64=20support=20(#1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * arm64 v8 image of whisper-ai engine for Apple M's * Try with new tags input to build action * Try with buildx * Fixes pr prefix * Updates build-arm action to use latest main --------- Co-authored-by: Harpo Harbert --- .github/workflows/CD.yml | 17 +++++++++++++++-- arm64.dockerfile | 4 ++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 arm64.dockerfile diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 745c262..c708124 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -12,6 +12,19 @@ on: workflow_dispatch: jobs: - build: - name: 🔨 Build and deploy docker image + build-main: + name: 🔨 Build and deploy default docker image uses: WGBH-MLA/.github/.github/workflows/build.yml@main + + build-arm: + name: 🦾 Build and deploy arm64v8 docker image + uses: WGBH-MLA/.github/.github/workflows/build.yml@main + with: + file: arm64.dockerfile + buildx: true + platforms: linux/arm64 + tags: | + type=schedule,prefix=arm64- + type=ref,event=branch,prefix=arm64- + type=ref,event=tag,prefix=arm64- + type=ref,event=pr,prefix=arm64-pr- diff --git a/arm64.dockerfile b/arm64.dockerfile new file mode 100644 index 0000000..9ce0392 --- /dev/null +++ b/arm64.dockerfile @@ -0,0 +1,4 @@ +FROM arm64v8/debian:stable-slim +RUN apt update && apt install -y git ffmpeg python3 python3-pip +RUN pip install -U pip +RUN pip install git+https://github.com/openai/whisper.git