Gluon production in current-nucleus and nucleon-nucleus collisions in a quasi-classical approximation