DevOps 4

husky + commitizen : 커밋 컨벤션 맞추기

husky + lint-staged : 커밋 전 eslint, prettier 검사 husky + lint-staged를 이용해 eslint와 prettier가 적용 됐을 때만 커밋 가능하게 만들것이다~ 그전에 husky와 lint-staged를 알아보자 # Husky Automatically lint your commit messages,code, and run tests upon committing or pushing. baeritas.tistory.com Husky 2탄! 설치 방법은 위 글을 보면 되고 버전은 9! Husky는 git hook 기능을 편리하게 사용할 수 있도록 도와준다 Git Hooks란? 어떤 이벤트가 생겼을 때 자동으로 특정 스크립트를 실행하도록 할 수 있다. 이번에 할 것은..

Etc. 2024.03.04

husky + lint-staged : 커밋 전 eslint, prettier 검사

husky + lint-staged를 이용해 eslint와 prettier가 적용 됐을 때만 커밋 가능하게 만들것이다~ 그전에 husky와 lint-staged를 알아보자 # Husky Automatically lint your commit messages,code, and run tests upon committing or pushing. 커밋 메시지, 코드를 자동으로 린트하고 커밋 또는 푸시 시 테스트를 실행하세요. Husky는 git hook을 이용해 위와 같은 기능을 수행한다 Git Hooks란? 어떤 이벤트가 생겼을 때 자동으로 특정 스크립트를 실행하도록 할 수 있다. 클라이언트 훅은 커밋이나 Merge 할 때 실행되고 서버 훅은 Push 할 때 서버에서 실행된다. (https://git-scm..

Etc. 2024.02.28

[GitLab] CI/CD 오류 : There has been a missing dependency failure

소나큐브 연동한다고 ci/cd 이것저것 테스트 하다가 다 실패해서 원복 하는 중에 마주한 There has been a missing dependency failure 이게 뭔데 .... 구글링 하니까 artifacts가 잘못됐다 어쩌구 저쩌구 settings ci/cd variables를 잘못 건든건가 했는데 원래 거기엔 암것두 없었구요 결론을 말하자면~ ci/cd 단계가 build - deploy 두 단계인데 수동으로 원복할 때 deploy만 하면 될 줄 알고 build는 안돌리고 deploy만 다시 돌려서 이런 오류가 났던 것이다 build 파일이 오래 돼서 날아가버린듯? artifacts의 문제였습니다 ~ 아님 내가 테스트한다고 다른 빌드 파일들 만들어서 그런가 정확한 이유는 모르겠지만 build..

Etc. 2024.02.28

[SonarQube] + SonarScanner : mac 설정 및 분석

# SonarQube 소나큐브 설치 SonarQube는 도커로 설치할 것이다.. 왜냐면 그냥 설치하려면 자바에 환경변수 설정도 해야하고 도커 까는게 더 간단하다 Get Started | Docker Get started with Docker Desktop and join millions of developers in faster, more secure app development using containers and beyond. www.docker.com 여기 들어가서 자기 OS랑 칩 맞게 도커 설치 해주면 된다 Code Deployment Tools & Software | SonarQube New SonarQube versions are delivered both as zip files and Doc..

Etc. 2024.02.26