An earthquake with a magnitude of 3.4 shook Gilroy Tuesday morning, according to the US Geological Survey.The quake struck about 7 a.m. There were no immediate reports of damage.