完善文档与前端迁移,补充开源协议

This commit is contained in:
2026-04-17 19:48:13 +08:00
parent 466fa50aa8
commit 31916e68a6
94 changed files with 7019 additions and 480 deletions

View File

@@ -1,4 +1,4 @@
name: Build and Publish Docker Image
name: Build and Publish Docker Images
on:
push:
@@ -18,6 +18,15 @@ jobs:
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- image_suffix: backend
context: ./backend
file: ./backend/Dockerfile
- image_suffix: frontend
context: ./web
file: ./web/Dockerfile
steps:
- name: Checkout repository
@@ -37,7 +46,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image_suffix }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
@@ -45,16 +54,17 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
id: build
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
context: ${{ matrix.context }}
file: ${{ matrix.file }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=${{ matrix.image_suffix }}
platforms: linux/amd64,linux/arm64
- name: Image digest
run: echo "Image pushed with digest ${{ steps.build-and-push.outputs.digest }}"
run: echo "Image pushed with digest ${{ steps.build.outputs.digest }}"