chore(workflows): 优化Docker构建工作流配置
Some checks failed
Build and Push Docker / build (push) Failing after 20s
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:
parent
be39498010
commit
dd319a11ae
@ -11,20 +11,8 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver: docker-container
|
||||
driver-opts: image=moby/buildkit:latest
|
||||
@ -33,7 +21,6 @@ jobs:
|
||||
[registry."192.168.100.120:8418"]
|
||||
http = true
|
||||
insecure = true
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user