Skip to content

Commit d6cec33

Browse files
fix: set builder when it exists (#390)
* fix: do not recreate builder if exists * fix: set builder instance when it already exists
1 parent 094d879 commit d6cec33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scripts/docker_buildx.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ if [ "${AWS_ECR_BOOL_SKIP_WHEN_TAGS_EXIST}" -eq "0" ] || [[ "${AWS_ECR_BOOL_SKIP
8383
builder_exists="$(docker --context builder buildx ls --format json | jq -s 'any(.[]; .Name == "DLC_builder")')"
8484
if [ "${builder_exists}" != "true" ]; then
8585
docker --context builder buildx create --name DLC_builder --use
86+
else
87+
docker --context builder buildx use DLC_builder
8688
fi
8789
fi
8890
context_args="--context builder"

0 commit comments

Comments
 (0)