aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile5
1 files changed, 2 insertions, 3 deletions
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