The 8th Gym (Viridian City, Ground-type leader Giovanni) is accessed after obtaining the other 7 Badges. Victory Road (the cave leading to the Elite Four) is after the 8th Badge, not a Gym itself.
So: Beat 7 Gyms → Enter Viridian Gym (Giovanni) → Get 8th Badge → Enter Victory Road → Elite Four.