The past tense of do duty is did duty.
The third-person singular simple present indicative form of do duty is does duty.
The present participle of do duty is doing duty.
The past participle of do duty is done duty.