Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3 [feat] CI 워크플로우 생성 #5

Merged
merged 6 commits into from
Jan 2, 2024
Merged

#3 [feat] CI 워크플로우 생성 #5

merged 6 commits into from
Jan 2, 2024

Conversation

sohyundoh
Copy link
Member

@sohyundoh sohyundoh commented Jan 1, 2024

✒️ 관련 이슈번호

Key Changes 🔑

  1. Mile-Server-Lab에 CI 워크플로우 실험해보고 난 뒤 워크플로우 파일 작성하였습니다!
  2. CI 워크플로우 작성을 더 편하게 하기 위해 루트 파일에서 한 뎁스를 더 들어가야했던 기존의 패키징에서 server 패키지를 지우고 저장소 자체를 루트 패키지로 변경해주었습니다!
  3. CD는 도커를 사용해야할 것 같아 조금 더 공부하고 구현할 예정입니다!

To Reviewers 📢

깃허브 secret에 등록 되어있는 application.yml 파일을 가져와 빌드를 통과하면 CI가 통과되게 구현하였습니다!

7차 세미나에서 진행했던 CI와 비슷한데, 저희가 멀티 모듈이라는 점이 다릅니다! 그래서 application.yml파일을 생성해주어야 하는 부분이 기존 루트가 아닌 module-api안에 있는 src/main/resources여야 합니다!
그래서 아래와 같이 application.yml 파일의 위치를 설정해주었습니다!

    - name: create application.yml
      run: |
        ## create application.yml
        mkdir ./module-api/src/main/resources
        cd ./module-api/src/main/resources

        # application.yml 파일 생성
        touch ./application.yml

        # GitHub-Actions 에서 설정한 값을 application.yml 파일에 쓰기
        echo "${{ secrets.CI_APPLICATION }}" >> ./application.yml
        
        # application.yml 파일 확인
        cat ./application.yml
      shell: bash

image

통과했네용.. CD 해야지..

@sohyundoh sohyundoh requested a review from parkheeddong January 1, 2024 09:07
@sohyundoh sohyundoh self-assigned this Jan 1, 2024
Copy link
Contributor

@parkheeddong parkheeddong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 !!

@sohyundoh sohyundoh merged commit abafa2f into develop Jan 2, 2024
1 check passed
@sohyundoh sohyundoh deleted the feat/#3 branch January 2, 2024 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

[feat] CI 워크플로우 생성
2 participants