From 677c30ff7da0b367fd4686c14f8dfbd9ff8178af Mon Sep 17 00:00:00 2001 From: KansaiGaijin <83641841+KansaiGaijin@users.noreply.github.com> Date: Thu, 30 Jul 2026 12:13:52 +1200 Subject: [PATCH] add CI workflow that builds whisperx-base before backend --- .gitea/workflows/build.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..bf44f9e --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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