Skip to content

Commit

Permalink
🦾 arm64 support (#1)
Browse files Browse the repository at this point in the history
* 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 <ryan_harbert@wgbh.org>
  • Loading branch information
foo4thought and mrharpo authored May 11, 2023
1 parent a85d718 commit 7278c4d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
4 changes: 4 additions & 0 deletions arm64.dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7278c4d

Please sign in to comment.