feat: add GitHub Actions workflows for publishing backend and frontend Docker images

This commit is contained in:
2026-03-06 16:20:08 +08:00
parent 8a9ed60add
commit 0ca1a9823b
2 changed files with 36 additions and 14 deletions

33
.github/workflows/docker-frontend.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Publish Frontend Image
on:
push:
branches: [main]
paths:
- 'qwen3-tts-frontend/**'
- 'docker/frontend/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: docker/frontend/Dockerfile
push: true
tags: bdim404/qwen3-tts-frontend:latest
cache-from: type=gha,scope=frontend
cache-to: type=gha,mode=max,scope=frontend