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