add CI workflow that builds whisperx-base before backend
All checks were successful
Build and Push / build (push) Successful in 13m50s
All checks were successful
Build and Push / build (push) Successful in 13m50s
This commit is contained in:
42
.gitea/workflows/build.yml
Normal file
42
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Build and Push
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- name: Set lowercase repo path
|
||||
run: echo "REPO_LC=$(echo '${{ gitea.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
- name: Login to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.kansaigaijin.com
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.docker_builder }}
|
||||
|
||||
- name: Build and push whisperx-base
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./backend
|
||||
file: ./backend/Dockerfile.deps
|
||||
push: true
|
||||
tags: gitea.kansaigaijin.com/${{ env.REPO_LC }}/whisperx-base:latest
|
||||
|
||||
- name: Build and push backend
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./backend
|
||||
push: true
|
||||
tags: gitea.kansaigaijin.com/${{ env.REPO_LC }}/backend:latest
|
||||
build-args: |
|
||||
BASE_IMAGE=gitea.kansaigaijin.com/${{ env.REPO_LC }}/whisperx-base:latest
|
||||
|
||||
- name: Build and push frontend
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./frontend
|
||||
push: true
|
||||
tags: gitea.kansaigaijin.com/${{ env.REPO_LC }}/frontend:latest
|
||||
Reference in New Issue
Block a user