Dnd 5e question. Combination of green flame blade and the tiefling feature “flames of the nine hells”

I’m playing an eldritch knight, and I’m looking to optimize the damage of green flame blade. The feature “flames of the nine hells” states that “You deal 1d4 fire damage when hit by a melee attack and shed 30 feet of bright light after casting a fire spell, you can reroll 1s on spell fire damage rolls” would both the 1d4 fire damage and the re-roll 1’s on fire damage trigger when using green flame blade? Or is this meant for spells of level 1 and higher?