Skip to content

Commit

Permalink
llama.cpp: add dependency as it uses binary from llama.cpp-base
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertgong committed Nov 1, 2024
1 parent 5a42a49 commit fd636b8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
build_llama:
name: Build llama.cpp Image
runs-on: ubuntu-latest
needs: validate
needs: [validate, build_llama_base]

services:
docker:
Expand Down Expand Up @@ -135,28 +135,27 @@ jobs:
name: Build whisper.cpp Image
runs-on: ubuntu-latest
needs: validate

services:
docker:
image: docker:20.10.16
options: --privileged

env:
IMAGE: whisper.cpp
CI_REGISTRY_PATH: index.docker.io/ahoylabs
CI_REGISTRY_USER: ${{ secrets.CI_REGISTRY_USER }}
CI_REGISTRY_PASSWORD: ${{ secrets.CI_REGISTRY_PASSWORD }}

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Log in to Docker Hub
run: docker login -u "${{ secrets.CI_REGISTRY_USER }}" -p "${{ secrets.CI_REGISTRY_PASSWORD }}"

- name: Build whisper.cpp Docker image
run: |
cd $IMAGE
docker build --pull -t "${{ env.CI_REGISTRY_PATH }}/${{ env.IMAGE }}" .
docker push "${{ env.CI_REGISTRY_PATH }}/${{ env.IMAGE }}"

0 comments on commit fd636b8

Please sign in to comment.