feat: add GitHub Actions workflow for Docker image publishing and update .gitignore for nginx.conf
This commit is contained in:
45
.github/workflows/docker-publish.yml
vendored
Normal file
45
.github/workflows/docker-publish.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Publish Docker Images
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'qwen3-tts-backend/**'
|
||||||
|
- 'qwen3-tts-frontend/**'
|
||||||
|
- 'qwen_tts/**'
|
||||||
|
- 'docker/**'
|
||||||
|
|
||||||
|
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 backend
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: docker/backend/Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: bdim404/qwen3-tts-backend:latest
|
||||||
|
cache-from: type=gha,scope=backend
|
||||||
|
cache-to: type=gha,mode=max,scope=backend
|
||||||
|
|
||||||
|
- name: Build and push frontend
|
||||||
|
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
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -32,7 +32,7 @@ qwen3-tts-frontend/.env.local
|
|||||||
CLAUDE.md
|
CLAUDE.md
|
||||||
样本.mp3
|
样本.mp3
|
||||||
aliyun.md
|
aliyun.md
|
||||||
nginx.conf
|
/nginx.conf
|
||||||
deploy.md
|
deploy.md
|
||||||
qwen3-tts-backend/scripts
|
qwen3-tts-backend/scripts
|
||||||
qwen3-tts-backend/examples
|
qwen3-tts-backend/examples
|
||||||
|
|||||||
Reference in New Issue
Block a user