Before everyone starts clutching their pearls, keep in mind it's against US military regulations for service members to make these kinds of public political statement while in uniform, and it's been that way for a long long time.
The article even mentions this in the second paragraph
The Uniform Code of Military Justice (UCMJ) contains provisions barring officers from engaging in public political activities that are typically protected for civilians, including criticizing the president and other elected officials.
Typically, that's why news outlets always get "Retired General XYZ" to give opinions since they're no longer under the UCMJ. Official statements come from the executive branch.
The right thing to do is either complete your contract or resign commission and make whatever political statement you want, or stay and quietly use your influence to try to better things.