chore(workflows): 优化Docker构建工作流配置
Some checks failed
Build and Push Docker / build (push) Failing after 20s

- 移除不必要的docker守护进程配置步骤
- 直接使用docker setup-buildx-action设置buildx插件
- 更新buildx驱动和选项配置为docker-container模式
- 清理冗余空行,提升配置文件简洁性
This commit is contained in:
movingsam 2026-03-01 23:18:50 +08:00
parent be39498010
commit dd319a11ae

View File

@ -11,20 +11,8 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4
- name: Configure Docker for insecure registry
run: |
mkdir -p /etc/docker
cat > /etc/docker/daemon.json << 'EOF'
{
"insecure-registries": ["192.168.100.120:8418"]
}
EOF
pkill -HUP dockerd || true
sleep 3
- name: Set up Docker Buildx - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with: with:
driver: docker-container driver: docker-container
driver-opts: image=moby/buildkit:latest driver-opts: image=moby/buildkit:latest
@ -33,7 +21,6 @@ jobs:
[registry."192.168.100.120:8418"] [registry."192.168.100.120:8418"]
http = true http = true
insecure = true insecure = true
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v4 uses: actions/cache@v4
with: with: