Marriage in the Bible is the joining of one man to one women in a binding promise made before God. We are encouraged to careful in forming relationships and to seek those who share our faith (cf. 2 Cor 6:14). Race is not a consideration – we are all one in Christ (Gal 3:28).
The OT does contain prescriptions against Israelites marrying from the surrounding nations. The principle here is not to do with race but idolatry.
“You shall not enter into marriage with them, neither shall they with you, for surely they will turn your heart after their gods” (1 Kgs 11:2).
Israelites did marry with foreigners after they had converted to a belief in the one true God. Rahab and Ruth are the most obvious examples.