A global regularity result for some degenerate elliptic systems