Three US soldiers stationed in South Korea were punished for sneaking off base to go out drinking — ignoring the army’s coronavirus restrictions.

The trio were accused of “entering post through a hole in the installation’s fence,” and violating a ban on non-essential travel during the coronavirus outbreak, according to a story first reported by Stars and Stripes.

The unnamed soldiers were all assigned to the 94th Military Police Battalion, 19th Expeditionary Sustainment Command, at Camp Walker in the southeastern South Korean city of Daegu.

The soldiers — who were also punished for not reporting the hole in the fence — were reduced in rank and must forfeit $866 in pay, said command notices posted on social media.

They also received 45 days of restriction and extra duty.

“Doing the wrong thing has serious consequences,” the 19th Expeditionary Sustainment Command said in a Facebook post. “Don’t risk everyone’s safety and our ability to complete our mission because you can’t follow orders.”

The military has published the punishment to warn others not to violate the restrictions on off-base travel and social activities to prevent the spread of the virus.

South Korea has confirmed more than 10,600 COVID-19 cases, with more than 8,042 patients being cleared of the virus.