chore(CI): Remove Docker Hub because of its slow upload speed. #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
# !!! | |
# Notice: This workflow cannot be executed on the free runner due to insufficient disk space. | |
# !!! | |
name: docker_publish | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: | |
- "master" | |
tags: | |
- "*" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
docker-no_model: | |
# The type of runner that the job will run on | |
runs-on: self-hosted | |
strategy: | |
fail-fast: true | |
max-parallel: 1 # only one job at a time | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Docker meta data:no_model | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ghcr.io/${{ github.repository_owner }}/whisperx | |
flavor: | | |
latest=true | |
prefix= | |
suffix= | |
tags: | | |
no_model | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# Create a Access Token with `read:packages` and `write:packages` scopes | |
# CR_PAT | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Build and push:no_model | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile.no_model | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64 | |
# cache-from: type=gha | |
# cache-to: type=gha,mode=max | |
docker: | |
# The type of runner that the job will run on | |
runs-on: self-hosted | |
strategy: | |
fail-fast: true | |
max-parallel: 1 # only one job at a time | |
matrix: | |
lang: | |
- en | |
- fr | |
- de | |
- es | |
- it | |
- ja | |
- zh | |
- nl | |
- uk | |
- pt | |
- ar | |
- cs | |
- ru | |
- pl | |
- hu | |
- fi | |
- fa | |
- el | |
- tr | |
- da | |
- he | |
- vi | |
- ko | |
- ur | |
- te | |
model: | |
- tiny | |
- base | |
- small | |
- medium | |
- large-v2 | |
needs: docker-no_model # wait for docker-no_model to finish | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Docker meta data:${{ matrix.model }}-${{ matrix.lang }} | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ghcr.io/${{ github.repository_owner }}/whisperx | |
flavor: | | |
latest=false | |
prefix= | |
suffix= | |
tags: | | |
${{ matrix.model}}-${{ matrix.lang }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# Create a Access Token with `read:packages` and `write:packages` scopes | |
# CR_PAT | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Build and push:${{ matrix.model }}-${{ matrix.lang }} | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: | | |
WHISPER_MODEL=${{ matrix.model }} | |
LANG=${{ matrix.lang }} | |
platforms: linux/amd64 | |
# cache-from: type=gha | |
# cache-to: type=gha,mode=max |