fix: 修复 CI/CD Docker 构建 context 和 Dockerfile 路径
- context 改为 ./src - dockerfile 改为相对于 context 的路径
This commit is contained in:
parent
feb1a733cd
commit
69b82966b5
14
.dockerignore
Normal file
14
.dockerignore
Normal file
@ -0,0 +1,14 @@
|
||||
.git
|
||||
.gitignore
|
||||
.bin
|
||||
.obj
|
||||
**/bin
|
||||
**/obj
|
||||
.vs
|
||||
.vscode
|
||||
.idea
|
||||
*.user
|
||||
*.suo
|
||||
*.cache
|
||||
*.log
|
||||
.DS_Store
|
||||
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user