From 1c19ff0f13a42a45fa89905823159a085b9bac05 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Wed, 20 Jan 2021 14:10:18 +0100 Subject: [PATCH] CI: use git url replace instead of changing the submodule file directly --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29ef971..74e3e00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ cache: - _cypress_cache before_script: - - "sed -i 's|git@gitlab.tugraz.at:dbp|../..|g' .gitmodules" + - 'git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.tugraz.at/".insteadOf "git@gitlab.tugraz.at:"' - git submodule sync - git submodule update --init - yarn config set cache-folder "$CI_PROJECT_DIR/_yarn_cache" -- GitLab