Refactor .gitlab-ci

  1. Template out the job rules perhaps?
  2. Refactor before_script for certain stages