Skip to content

update whisperx, add support of setting vad_method - silero or pyannote #15

update whisperx, add support of setting vad_method - silero or pyannote

update whisperx, add support of setting vad_method - silero or pyannote #15

name: Deploy CPU image to GHCR
on:
push:
branches:
- main
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Get package version
id: get_version
run: |
EPOCH_TIME=$(date +%s)
COMMIT_HASH=$(git rev-parse --short HEAD)
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
if [[ "$BRANCH_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
VERSION=$BRANCH_NAME
else
VERSION="${EPOCH_TIME}-${COMMIT_HASH}"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build and push CPU image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.cpu
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: ghcr.io/nyralei/whisperx-api-server:${{ steps.get_version.outputs.version }}-cpu