fix: disable DOCKER_BUILDKIT for plain docker builds to fix DNS resolution
This commit is contained in:
@@ -141,9 +141,14 @@ runs:
|
|||||||
- name: Build image
|
- name: Build image
|
||||||
id: build
|
id: build
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
DOCKER_BUILDKIT: "1"
|
|
||||||
run: |
|
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=""
|
CACHE_FROM_FLAG=""
|
||||||
if [ -n "${{ inputs.cache-from }}" ] && [ "${{ inputs.use-buildx }}" = "true" ]; then
|
if [ -n "${{ inputs.cache-from }}" ] && [ "${{ inputs.use-buildx }}" = "true" ]; then
|
||||||
CACHE_FROM_FLAG="--cache-from=${{ inputs.cache-from }}"
|
CACHE_FROM_FLAG="--cache-from=${{ inputs.cache-from }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user