Skip to content

Commit 5491fec

Browse files
authored
fix: switch buildx command to fix validation (#323)
* fix: switch buildx command to fix validation * chore: add debug and context confirmation
1 parent 72889ae commit 5491fec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scripts/docker_buildx.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ if [ "${AWS_ECR_BOOL_SKIP_WHEN_TAGS_EXIST}" -eq "0" ] || [[ "${AWS_ECR_BOOL_SKIP
7676
fi
7777
context_args="--context builder"
7878
# if no builder instance is currently used, create one
79-
elif ! docker buildx inspect | grep -q "default * docker"; then
79+
elif ! docker buildx ls | grep -q "default * docker"; then
80+
set -x
8081
docker buildx create --name DLC_builder --use
82+
echo "Context is set to DLC_builder"
83+
set +x
8184
fi
8285

8386
set -x

0 commit comments

Comments
 (0)