How to paint a brick wall

So that the walls for the construction of which were used by a brick, for a long time retained the appearance unchanged, did not destroy and did not absorb moisture, it is worth thinking about their decoration.