From 879380dc583442cd1025223f3537fd531ab2a5ae Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Mon, 24 Nov 2025 07:08:49 -0800 Subject: feat: switch to buildx --- justfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index eb6f65e..70bbda4 100644 --- a/justfile +++ b/justfile @@ -21,7 +21,7 @@ build-container container: #!/usr/bin/env bash base_ver=$(cat src/base/VERSION) tag=$(cat src/{{container}}/VERSION) - docker build --build-arg BASE_VER=$base_ver -t {{registry_url}}/{{container}}:$tag -f src/{{container}}/Dockerfile src/{{container}} + docker buildx build --build-arg BASE_VER=$base_ver -t {{registry_url}}/{{container}}:$tag -f src/{{container}}/Dockerfile src/{{container}} --load echo "{{container}}/$tag has been built" # Push a single container @@ -56,8 +56,7 @@ build-targets: for target in src/$container/targets/*; do target_name=$(basename $target) tag=$(cat src/$container/VERSION) - docker build --target $target_name -t {{registry_url}}/$container:$tag-$target_name -f src/$container/Dockerfile src/$container - docker build --target $target_name -t {{registry_url}}/$container:$target_name -f src/$container/Dockerfile src/$container + docker buildx build --target $target_name -t {{registry_url}}/$container:$tag-$target_name -t {{registry_url}}/$container:$target_name -f src/$container/Dockerfile src/$container --load echo "$container/$target_name/$tag has been built" done done -- cgit v1.2.3