Rename CI environment variables
We have a number of CI_BUILD
variables. I wish if we could rename them: https://docs.gitlab.com/ce/ci/variables/README.html
- CI_BUILD_ID => CI_JOB_ID
- CI_BUILD_REF => CI_COMMIT_SHA
- CI_BUILD_TAG => CI_COMMIT_TAG
- CI_BUILD_REF_NAME => CI_COMMIT_REF_NAME
- CI_BUILD_REF_SLUG => CI_COMMIT_REF_SLUG
- CI_BUILD_NAME => CI_JOB_NAME
- CI_BUILD_STAGE => CI_JOB_STAGE
- CI_BUILD_REPO => CI_REPOSITORY
- CI_BUILD_TRIGGERED => CI_PIPELINE_TRIGGERED
- CI_BUILD_MANUAL => CI_JOB_MANUAL
- CI_BUILD_TOKEN => CI_JOB_TOKEN
As part of that we should also introduce:
- CI_REGISTRY_USER = gitlab-ci-token
- CI_REGISTRY_PASSWORD = $CI_JOB_TOKEN
(Of course, all CI_BUILD_*
should still be supported)