Start a journal and fill it with every moral failing you can remember. On the next page write what a morally upright person would have handled those situations. Refer to it regularly as a reminder of who God is restoring to to become.
Surround yourself with people who live lives of integrity. You know who they are, they are the men and women who do what they say.
Then begin to act in ways that are congruous with the people who live honestly with strong moral principles. When you fail at this, we all do, be honest about that moral failing and confess to someone and pray for God’s help. The Bible is clear about this in James 5:16.