diff options
Diffstat (limited to '')
| -rw-r--r-- | justfile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |