본문 바로가기

728x90
반응형

git

(10)
docker gitlab-runner 실행해서 연결하기 gitlab은 있다는 전제하에 gitlab-runner를 실행한다. docker run -d --name gitlab-runner --restart always -v /gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner:latest -v /gltab-runner => 실행하는 vm(혹은 로컬)의 디렉터리 경로로 볼륨을 잡았다. docker exec -it bash 도커 컨테이너가 실행되면 컨테이너로 접속한다. # gitlab-runner 등록 gitlab-runner register # gitlab instance URL 입력 Enter the GitLab instance URL (for example, https://gitlab.com/): ht..
git 기본 명령어 목차 git init 현재 디렉토리를 git 레포지토리로 설정하는 명령 % git init 힌트: Using 'master' as the name for the initial branch. This default branch name 힌트: is subject to change. To configure the initial branch name to use in all 힌트: of your new repositories, which will suppress this warning, call: 힌트: 힌트: git config --global init.defaultBranch 힌트: 힌트: Names commonly chosen instead of 'master' are 'main', 'trunk' and..
git 설치 및 다운로드 설정파일 정보 확인 사용자 등록 https://git-scm.com/downloads Git - Downloads Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp git-scm.com 위의 사이트에서 자신의 OS에 맞는 git을 다운로드 한 후 설치하면된다. 설정파일 위치 및 정보 확인 시스템 전역 설정정보(macos) git co..
gitlab package registry 생성 후 라이브러리 올리는법(gradle) docs.gitlab.com/ee/user/packages/maven_repository/ Maven packages in the Package Repository | GitLab Maven packages in the Package Repository Version history Introduced in GitLab Premium 11.3. Moved to GitLab Free in 13.3. Publish Maven artifacts in your project’s Package Registry. Then, install the packages whenever you need to use them as a dependency docs.gitlab.com 충실하게 따라하면 된다. gitlab에서 pro..
intellij gitlab 기존소스 연동하는방법 이거 자꾸 할 때마다 검색해서 하는게 답답해서 정리함 일단 gitlab에서 프로젝트를 생성한 후 주소를 복사해둠. intellij VCS > Enable Version Control Integration git 선택한 후 OK 그러면 이렇게 메뉴에 git이 보임 git > manage remotes + 버튼을 누르고 gitlab 원격주소를 넣으면 된다. 의외로 간단했던 것이었던 것이었다.
git 사용방법 (with sourcetree) git 사용방법 git 설치한다. git-scm.com/ Git git-scm.com 위 링크에서 OS에 맞게 설치하면 된다. sourcetree www.sourcetreeapp.com/ Sourcetree | Free Git GUI for Mac and Windows A Git GUI that offers a visual representation of your repositories. Sourcetree is a free Git client for Windows and Mac. www.sourcetreeapp.com 마찬가지로 설치하면 된다. 소스트리는 계정이 없으면 계정을 생성해야 한다. 폴더에 파일을 두 개 만든다. 파일에 내용을 작성한다. git init git config --global us..
git submodule 삭제 git submodule deinit -f frontend .git/modules/frontend삭제(숨긴파일보기로) .gitmodules file 자체를 삭제 git rm --cached frontend rm -rf frontend
git submodule jenkinsfile 에서 배포할 때 stage('npm build'){ sh 'ls -alrt' dir('frontend') { git url: "https://gitlab주소/repository/frontend", branch: "master", credentialsId: 'git계정' sh 'ls -alrt' sh 'rm -rf build/*' echo 'npm build start..' sh 'npm install' sh 'npm run build' echo 'npm build end ..' sh 'cp -R build/* src/main/resources/static' dir('src/main/resources/static') { sh 'ls -alrt' } } } jenkinsfile에서 giturl, branch, credent..

728x90
반응형