-
Notifications
You must be signed in to change notification settings - Fork 8
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
[ALL] 프론트엔드 배포 자동화 yml 파일 생성 #212
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빨리빨리 이해하고 따라와 준 덕에 순식간에 끝낼 수 있었네요👍
고생했습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CD가 구축되어 삶의 질이 높아질 것 같네요👍 2개의 코멘트를 남겼는데 확인 부탁드려요~
name: momoResources | ||
path: frontend/dist | ||
|
||
deploy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
백엔드 워크플로우 네이밍과 같이 작업 이름을 fe-deploy로 짓는 것은 어떨까요?
|
||
deploy: | ||
needs: fe-build | ||
runs-on: self-hosted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
배포 워크플로우시에 self-hosted
를 사용하는 이유가 궁금해요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CloudFront 배포 특성 상 S3버킷에 빌드된 결과물(html, js, asset 등)을 업로드하고 CF에서 해당 S3를 '원본(공식번역이 이렇긴한데.. Origin 입니다)' 설정하여 라우팅 해 주는데, IAM 키를 직접 발급할 수 없어서 외부에서 S3 버킷에 접근이 불가능합니다.
저희가 사용하는 EC2에는 IAM Role이 설정돼 있어서 별다른 인증 작업 없이 aws s3
커멘드만으로 버킷 접근이 가능하구요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저희 상황에서 CloudFront에 접근하기 위해 사용하는 것이었네요. 좋습니다👍👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
name들이 다들 귀염뽀짝하네요 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
작업 사항을 노션에 깔끔하게 기록해주셨군요👍 덕분에 이해를 쉽게 할 수 있었어요! 고생하셨습니다👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
프론트엔드 인프라지킴이 해리 고마워요~ 👍
질문 하나 남겼는데 답변 부탁드릴게용~!
- name: 노드 버젼을 설정해요 :) | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Q]
나중에 버전이 업데이트 되어도 우리 프로젝트에 영향이 갈 일이 없을까요?
버전을 명시하기 vs lts 버전을 유지하기 어떤 부분이 나을까요? 해리의 의견이 궁금해요!
관련 이슈
작업 내용
간단 설명
develop 브랜치에서 시작해서
깃허브 이벤트에는 merge가 존재하지 않으므로, develop 브랜치에 push가 되었을 때 워크 플로우를 실행한다.
깃허브 서버에서 특정 job, run들을 수행하면
ubuntu-latest
환경에서 수행한다. 하지만, 깃허브 서버에서는 우아한테크코스 aws에 직접 접근할 수 없기 때문에 우아한테크코스 aws에서 생성한 모모 EC2 인스턴스를self-hosted
로 사용해서aws cli
로 s3, cloudfront와 싱크를 맞춘다.특이 사항
리뷰 요구사항 (선택)