fix: 修复Docker构建网络连接问题

This commit is contained in:
sansan
2025-09-22 21:26:49 +08:00
parent 89ab87cad2
commit 10784f0ec5
5 changed files with 54 additions and 30 deletions
+7
View File
@@ -21,6 +21,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=host
- name: Login to Docker Hub
uses: docker/login-action@v3
@@ -41,6 +44,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
env:
BUILDKIT_PROGRESS: plain
with:
context: .
file: ./docker/Dockerfile
@@ -50,3 +55,5 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
BUILDKIT_INLINE_CACHE=1