build and push

This commit is contained in:
Shihaam Abdul Rahman 2023-10-14 23:52:13 +05:00
parent 5d1a7c80df
commit 0e44205407
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 18 additions and 1 deletions

View File

@ -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 ..

17
push-all.sh Executable file
View File

@ -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