From df073bfe09495bbd0f7e55d4e8f7699b643516c2 Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Thu, 15 Dec 2022 18:50:43 +0800 Subject: [PATCH] fix .gitlab-ci.yml --- .gitlab-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 749f8a9..f7cc9cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,8 +11,17 @@ publish_npm: - apk add --update protobuf-dev - apk add --update yarn - apk add --update git - - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/".insteadOf "git@gitlab.com:" - - git submodule sync && git submodule update --init + - git config --global credential.helper store + - git config --global credential.useHttpPath true + - | + git credential approve <<EOF + protocol=https + host=gitlab.com + path=my-group/my-submodule-repo.git + username=${CI_DEPENDENCY_PROXY_USER} + password=${CI_DEPENDENCY_PROXY_PASSWORD} + EOF + - git submodule update --init --recursive rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' -- GitLab