fix: 修复 CI/CD Docker 构建 context 和 Dockerfile 路径
Some checks failed
Build / build (push) Failing after 31s
Deploy to K8s / deploy (push) Failing after 3s

- context 改为 ./src
- dockerfile 改为相对于 context 的路径
This commit is contained in:
movingsam 2026-02-28 21:55:15 +08:00
parent feb1a733cd
commit 69b82966b5
2 changed files with 16 additions and 1 deletions

14
.dockerignore Normal file
View File

@ -0,0 +1,14 @@
.git
.gitignore
.bin
.obj
**/bin
**/obj
.vs
.vscode
.idea
*.user
*.suo
*.cache
*.log
.DS_Store

View File

@ -49,7 +49,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
context: ./src
dockerfile: Dockerfile
dockerfile: ./src/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}