fix: add --no-cache to docker build to avoid stale layers

This commit is contained in:
2026-01-07 17:56:19 +00:00
parent 9cff273a6a
commit f76d4cab71

View File

@@ -114,12 +114,12 @@ jobs:
fi fi
done done
# Build the image # Build the image with --no-cache to ensure fresh build
if [ -n "$BUILD_ARGS" ]; then if [ -n "$BUILD_ARGS" ]; then
echo "🔧 Building with args: $BUILD_ARGS" echo "🔧 Building with args: $BUILD_ARGS"
docker build $BUILD_ARGS -t "${IMAGE_NAME}:latest" "$IMAGE_PATH" docker build --no-cache $BUILD_ARGS -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
else else
docker build -t "${IMAGE_NAME}:latest" "$IMAGE_PATH" docker build --no-cache -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
fi fi
# Push latest tag # Push latest tag