Skip to content

Comments

chore: cicd 환경 스키마, 데이터 init 및 문서화 작업 step 추가#28

Merged
hisonghy merged 2 commits intodevelopfrom
chore/cicd-24
Mar 20, 2025
Merged

chore: cicd 환경 스키마, 데이터 init 및 문서화 작업 step 추가#28
hisonghy merged 2 commits intodevelopfrom
chore/cicd-24

Conversation

@hisonghy
Copy link
Member

@hisonghy hisonghy commented Mar 20, 2025

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • spring boot 설정에서 sql > init > mode: always 로 설정하면 추후 @SpringBootTest 클래스가 늘어나면 그 수만큼 실행되면서 에러가 발생할 가능성이 있음. 그래서 cicd 환경에서 test postgres 컨테이너를 실행시키고 직접 컨테이너에 접속해 스키마, 데이터 init 작업을 한번만 수행하도록 작업을 변경했습니다
  • deploy 워크플로에서 swagger api 문서화, rest docs api 문서화 task 를 실행해 배포 환경에서 api 문서화 파일에 접근 할 수 있도록 구성했습니다
  • build 대신 bootJar 로 바꿔 실행 가능한 Spring Boot JAR 파일만 만들어 배포할 수 있도록 수정했습니다. develop 브랜치의 Pull Request 워크플로에서 check 테스크 를 수행해 검증된 후에 build deploy 워크플로 실행이 가능하고 Swagger API 문서화 테스크에서도 test 를 수행해 검증이 이루어지기 때문에 build 대신 bootJar 테스크만 실행해 중복 작업을 줄이고 빌드 속도를 최적화했습니다

🔍 참고사항

  • 테스트용 PR -> 실제 스키마, 데이터가 잘 init 되는지 확인 후 build_develop 워크플로에도 적용하고 문서화 작업 실행 step 도 추가할 예정

📚 기타

@hisonghy hisonghy added the ⚙️ chore 빌드 및 CI/CD, 그외 설정작업 label Mar 20, 2025
@hisonghy hisonghy requested a review from myqewr March 20, 2025 08:35
@hisonghy hisonghy self-assigned this Mar 20, 2025
@hisonghy hisonghy force-pushed the chore/cicd-24 branch 3 times, most recently from 63caa4b to fc438cb Compare March 20, 2025 09:00
@hisonghy hisonghy merged commit f62e3e0 into develop Mar 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ chore 빌드 및 CI/CD, 그외 설정작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚙️️ cicd 워크플로 개선

2 participants