feat: add GitHub Actions workflows for publishing backend and frontend Docker images
This commit is contained in:
34
.github/workflows/docker-backend.yml
vendored
Normal file
34
.github/workflows/docker-backend.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Publish Backend Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'qwen3-tts-backend/**'
|
||||
- 'qwen_tts/**'
|
||||
- 'docker/backend/**'
|
||||
|
||||
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/backend/Dockerfile
|
||||
push: true
|
||||
tags: bdim404/qwen3-tts-backend:latest
|
||||
cache-from: type=gha,scope=backend
|
||||
cache-to: type=gha,mode=max,scope=backend
|
||||
Reference in New Issue
Block a user