From 0e442054072045ff992e1fa8e03b4a8731be99cb Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sat, 14 Oct 2023 23:52:13 +0500 Subject: [PATCH] build and push --- build-all.sh | 2 +- push-all.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 push-all.sh diff --git a/build-all.sh b/build-all.sh index 0a3e55d..8a978cb 100755 --- a/build-all.sh +++ b/build-all.sh @@ -10,7 +10,7 @@ for dir in */; do cd "$dir" # Run docker build and push - docker buildx bake --push + docker buildx bake --load # Change back to the parent directory cd .. diff --git a/push-all.sh b/push-all.sh new file mode 100755 index 0000000..0a3e55d --- /dev/null +++ b/push-all.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +#COMPOSE_DOCKER_CLI_BUILD=1 +#DOCKER_BUILDKIT=1 +#DOCKER_DEFAULT_PLATFORM=linux/amd64 + +# Loop through each directory +for dir in */; do + # Change into the directory + cd "$dir" + + # Run docker build and push + docker buildx bake --push + + # Change back to the parent directory + cd .. +done