stages:# 主要流程为两步- code_check# 第一步代码检测- deploy_prometheus# 第二步部署应用variables: GIT_SUBMODULE_STRATEGY: recursive# 自动代码拉取code_check_job: stage: code_check# stage: 和主流程中指定的一致,这里为第一个流程image: registry.cn-hangzhou.aliyuncs.com/lindytom/promtool:latest# 使...
默认的 GitLab 的 Runner 在构建时不会去拉取GitSubmodules 仓库,将会提示 Skipping Git submodules setup 跳过初始化 Git Submodule 仓库 如官方文档的描述,只需要加上以下代码在.gitlab-ci.yml文件即可 代码语言:javascript 代码运行次数:0 运行 AI代码解释 ...
git-lfs/2.13.3 (GitHub; windows amd64; go 1.16.2; git a5e65851) Skipping Git submodules setup Executing "step_script" stage of the job script 00:01 $ pwd Path --- C:\gitlab-runner-windows-amd64\builds\xhyz8oiW\0\g1\p1 $ get-host Name : ConsoleHost Version : 5.1.19041.1320 ...
Summary A customer wants to update their submodule URL within their CI Job without having to commit changes to their .gitmodules...
默认的 GitLab 的 Runner 在构建时不会去拉取 Git Submodules 仓库,将会提示 Skipping Git submodules setup 跳过初始化 Git Submodule 仓库 如官方文档 的描述,只需要加上以下代码在 .gitlab-ci.yml 文件即可 variables: ...
原因: 从一个分支(此分支没有报错的子模块)切换到另一个分支(有报错子模块的) 然后直接提交父项目,gitlab runner 执行的时候就会找不到该子项目, 就需要运行一下 git submodule sync && git submodule update --init --recursive 这个命令把子项目同步到主项目,然后再提交即可。
gitlab ci runner 不更新 submodule 的问题在gitlab CI not checking out latest submodule's commit的...
Skipping Git submodules setup $ git remote set-url origin "${CI_REPOSITORY_URL}" Restoring cache 00:01 Checking cache for default-protected... Downloading cache from https://storage.googleapis.com/gitlab-com-runners-cache/project/57389325/default-protected Successfully extracted cache Downloading ...
生成配置文件 # docker run --rm -v /data/apps/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner:v10.5.0 register \--non-interactive\--executor"docker"\--docker-image alpine:latest\--url"https://gitlab.com/"\--registration-token"PROJECT_REGISTRATION_TOKEN"\--description"docker...
Skipping Git submodules setup Checking cache for test00000-11... No URL provided, cache will be not downloaded from shared cache server. Instead a local version of cache will be extracted. Successfully extracted cache $ nix-env -i tree ...