Skip to content

[chore] github ci/cd 워크플로 설정#9

Merged
buzz0331 merged 37 commits into
developfrom
chore/#8-ci_cd
May 29, 2025
Merged

[chore] github ci/cd 워크플로 설정#9
buzz0331 merged 37 commits into
developfrom
chore/#8-ci_cd

Conversation

@buzz0331
Copy link
Copy Markdown
Contributor

@buzz0331 buzz0331 commented May 24, 2025

#️⃣ 연관된 이슈

📝 작업 내용

  • ci/cd용 깃허브 액션 워크플로를 설정했습니다.

📸 스크린샷

💬 리뷰 요구사항

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

📌 PR 진행 시 이러한 점들을 참고해 주세요

* P1 : 꼭 반영해 주세요 (Request Changes) - 이슈가 발생하거나 취약점이 발견되는 케이스 등
* P2 : 반영을 적극적으로 고려해 주시면 좋을 것 같아요 (Comment)
* P3 : 이런 방법도 있을 것 같아요~ 등의 사소한 의견입니다 (Chore)

@buzz0331 buzz0331 self-assigned this May 27, 2025
@buzz0331 buzz0331 requested review from hd0rable and seongjunnoh May 27, 2025 14:40
Comment thread .github/workflows/ci-workflow.yml Outdated
Comment on lines +33 to +37
- name: 🧾 Create application.yml from secret
run: |
cd ${{env.RESOURCE_PATH}}
rm -f application.yml
echo "${{ secrets.APPLICATION_YML_DEV }}" > application.yml
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread .gitignore
build/
!**/src/main/**/build/
!**/src/test/**/build/
*.yml
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

good

Comment thread src/main/resources/application.yml Outdated
Comment on lines +60 to +82
---

# dev DB
spring:
config:
activate:
on-profile: db-dev

datasource:
url: ${DEV_DB_URL}
username: ${DEV_DB_USER}
password: ${DEV_DB_PASSWORD}
driver-class-name: org.postgresql.Driver

jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.PostgreSQLDialect

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

p3 : application.yml 에서는 local, dev, prod를 나누지 말고 그냥 필요한 데이터의 템플릿 형식 1개만 보여주는게 어떤가요??

dev 서버인 경우, application-dev.yml 을 application.yml로 바꿔치기하는데 이러면 어차피 application.yml 에 명시된 dev 관련 값들은 무시되는데 굳이 dev용 값에 대한 명시를 application.yml 에 할 필요가 있나 싶습니다!

Copy link
Copy Markdown
Contributor Author

@buzz0331 buzz0331 May 27, 2025

Choose a reason for hiding this comment

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

넵 그러면 application.yml은 깃에서 삭제하고 로컬에서 관리하는 것으로 하겠습니다!

seongjunnoh
seongjunnoh previously approved these changes May 27, 2025
seongjunnoh
seongjunnoh previously approved these changes May 27, 2025
hd0rable
hd0rable previously approved these changes May 28, 2025
Copy link
Copy Markdown
Member

@hd0rable hd0rable left a comment

Choose a reason for hiding this comment

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

수고하셨어욧~~ 붐👍🏻

Comment thread .github/workflows/cd-workflow-dev.yml Outdated
docker build --build-arg PORT=${{env.APP_PORT}} -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }} .
docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }}

# - name: 🪪 Configure AWS credentials
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

이 주석은 후에 사용될것을 대비해서 주석처리 한것인가욧? 후에 ec2에 직접접속할 것을 대비해서 해놓으신건지 궁금합니닷

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

후에 직접 접속할 수도 있을 것 같아서 주석처리해두었는데 현재로서는 제거하는게 좋을 것 같네요~!

@buzz0331 buzz0331 merged commit a203559 into develop May 29, 2025
1 check passed
@buzz0331 buzz0331 deleted the chore/#8-ci_cd branch May 29, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[THIP2025-39] [chore] ci/cd 구축

3 participants