From 5399c864a60005b2212cc453c4560b702c099673 Mon Sep 17 00:00:00 2001 From: sHa Date: Sun, 28 Sep 2025 23:20:57 +0300 Subject: [PATCH] Refactor: Improve temporary tag generation for multi-platform builds with consistent timestamps --- images/mod.just | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/mod.just b/images/mod.just index de6aec7..84b0114 100644 --- a/images/mod.just +++ b/images/mod.just @@ -82,12 +82,14 @@ build project="" tag="" local="false": $runtime rmi "$image_name" 2>/dev/null || true # Build each platform locally with unique temporary tags - local temp_tags=() + temp_tags=() + timestamp=$(date +%s) + for platform in "${PLATFORM_ARRAY[@]}"; do echo -e "{{BLUE}}Building for platform: $platform{{NORMAL}}" # Create unique temporary tag for this build - temp_tag="${image_name}-build-$(date +%s)-${platform//\//-}" + temp_tag="${image_name}-build-${timestamp}-${platform//\//-}" temp_tags+=("$temp_tag") $runtime buildx build \