Renormalization group β-function from gluon thermodynamics