Commit 1814449c authored by Christian Ceelen's avatar Christian Ceelen Committed by Pierre Smeyers
Browse files

fix: use CI_JOB_TOKEN instead of CI_DEPLOY_* credentials to access project package repo as source

parent bdb15762
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ stages:
    if ! dotnet nuget list source --format Short | grep -q "${CI_SERVER_PROTOCOL}:${gitlab_registry_no_proto}"
    then
      # /!\ using '--store-password-in-clear-text' option due to encryption is not supported on non-Windows platforms
      dotnet nuget add source "${CI_SERVER_PROTOCOL}:${gitlab_registry_no_proto}" -n "${CI_PROJECT_ROOT_NAMESPACE}" -u "${CI_DEPLOY_USER}" -p "${CI_DEPLOY_PASSWORD}" --store-password-in-clear-text
      dotnet nuget add source "${CI_SERVER_PROTOCOL}:${gitlab_registry_no_proto}" -n "${CI_PROJECT_ROOT_NAMESPACE}" -u "gitlab-ci-token" -p "${CI_JOB_TOKEN}" --store-password-in-clear-text
      log_info "GitLab project-level package registry configured..."
      log_info "  ... it can be freely used to install/publish packages with source name \\e[33;1m${CI_PROJECT_ROOT_NAMESPACE}\\e[0m"
    fi