Merge pull request #2267 from bluewave-labs/feat/buildx-arm

feat: build multi-arch images for dist
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-05-13 15:29:48 -07:00
commit d825e6af7d
1 file changed
+5 -4
+5 -4
View File
@@ -11,11 +11,12 @@ declare -A services=(
["bluewaveuptime/uptime_server"]="./docker/dist/server.Dockerfile"
)
# Loop through each service and build the corresponding image
for service in "${!services[@]}"; do
docker build -f "${services[$service]}" -t "$service" .
# Check if the build succeeded
docker buildx build \
--platform linux/amd64,linux/arm64 \
-f "${services[$service]}" \
-t "$service" \
if [ $? -ne 0 ]; then
echo "Error building $service image. Exiting..."
exit 1