caddy-build/build_all.sh
Linloir cc0469c72c
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m52s
feat: update build script
2024-10-09 21:59:44 +08:00

13 lines
365 B
Bash
Executable File

#!/bin/bash
# Loop through each directory in the builds directory
for dir in builds/*/ ; do
# Remove trailing slash from directory name
dir=${dir%/}
# Extract the folder name
folder_name=$(basename $dir)
# Build the Docker image
docker buildx build --push --platform linux/amd64,linux/arm64 -t linloir/caddy-$folder_name $dir
done