Bankruptcies stay in a credit report for 5 years from the day you became bankrupt or, for 2 more years after it ends (a total of up to 7 years). In some situations, your trustee can lodge an objection to extend a bankruptcy for up to 8 years.
You can learn more about how bankruptcies can affect you on the Australian Government website.