update whisperx, add support of setting vad_method - silero or pyannote #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy CUDA 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 CUDA image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./Dockerfile.cuda | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
push: true | |
tags: ghcr.io/nyralei/whisperx-api-server:${{ steps.get_version.outputs.version }}-cuda |