Refactor and add new environment functionality to CI yaml reference

What does this MR do?

Add new environment functionality to the yaml reference.

What are the relevant issue numbers?

Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/23484

Merge request reports

Loading