Reformat, delete some deprecated keywords and do some other small refactors in the .gitlab-ci.yml file.