Telling is not promoting. Telling someone you are black does not promote blackness. Granted that is a slightly different thing.
In the military it is. You aren't an individual, no matter what, in the military, you are all green. Your bringing race into this is a straw man. Someone of any race in the military can't go around proclaiming "I'm XX" because in the military there is no I.