InfoGrab Docs

GitLab CI/CD에서 Git 서브모듈 사용

Use Git submodules to include code from other repositories in CI/CD pipelines with relative URLs, absolute URLs, and CI/CD variables.

Git 서브모듈 을 사용하여 다른 Git 리포지터리의 서브디렉토리로 Git 리포지터리를 유지할 수 있습니다. 다른 리포지터리를 프로젝트에 클론하고 커밋을 분리하여 유지할 수 있습니다. .gitmodules 파일 구성 # Git 서브모듈을 사용할 때 프로젝트에는 .gitmodules 라는 파일이 있어야 합니다. GitLab CI/CD 작업에서 작동하도록 구성하는 여러 옵션이 있습니다. 절대 URL 사용 # 히스토리 GitLab Runner 15.11에서 도입 . 예를 들어, 다음과 같은 경우에 생성된 .gitmodules 설정은 다음과 같을 수 있습니다: 프로젝트가 https://gitlab.com/secret-group/my-project 에 위치한 경우. 프로젝트가 서브모듈로 포함하려는 https://gitlab.com/group/project 에 의존하는 경우. git@gitlab.com:secret-group/my-project.git 과 같은 SSH 주소로 소스를 체크아웃하는