fix: disable DOCKER_BUILDKIT for plain docker builds to fix DNS resolution

This commit is contained in:
Hermes
2026-05-02 18:26:29 -07:00
parent 074185b6cd
commit 91772c117e

View File

@@ -141,9 +141,14 @@ runs:
- name: Build image
id: build
shell: bash
env:
DOCKER_BUILDKIT: "1"
run: |
# Disable BuildKit for plain docker builds (avoids container networking issues)
export DOCKER_BUILDKIT=0
if [ "${{ inputs.use-buildx }}" = "true" ]; then
export DOCKER_BUILDKIT=1
fi
CACHE_FROM_FLAG=""
if [ -n "${{ inputs.cache-from }}" ] && [ "${{ inputs.use-buildx }}" = "true" ]; then
CACHE_FROM_FLAG="--cache-from=${{ inputs.cache-from }}"