You can mine Ethereum until it transitions to proof-of-stake sometime in 2022. The Ethereum developers have not provided an exact date of the release for this change.