Replace deprecated GitLab CI variable

The CI_BUILD_TOKEN was deprecated by GitLab and will be removed in
GitLab 16.0. It was replaced by the CI_JOB_TOKEN varaible
(https://docs.gitlab.com/ee/update/deprecations?removal_milestone=16.0#ci_build_-predefined-variables)
This commit is contained in:
Ian McInerney 2023-04-27 23:35:30 +01:00
parent ae7456e055
commit ea0a30fb19
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ build_doxygen_docker:
- docker
before_script:
- docker info
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" "$CI_REGISTRY"
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
script:
- docker build -t "${CI_REGISTRY_IMAGE}/doxygen:$CI_COMMIT_BRANCH" -f ./doxygen/doxygen.Dockerfile .
- docker push "${CI_REGISTRY_IMAGE}/doxygen:$CI_COMMIT_BRANCH"