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

[초기세팅] GitHub Actions 설정 #4

Merged
merged 5 commits into from
Jan 1, 2024
Merged

Conversation

urjimyu
Copy link
Contributor

@urjimyu urjimyu commented Dec 30, 2023

이슈 넘버

구현 사항

  • PR 시 임시 배포 preview 설정
  • main에 푸시하면 자동 배포 설정

Need Review

  • Github Actions는 작업 흐름(workflow)을 자동화해주는 툴이라고 생각하면 좋을 것 같아요.
  • 총 2개의 workflow를 만들었습니다.
    • previewmain, develop으로 머지하는 PR을 올릴 경우 임시 배포 후 배포 화면을 미리 볼 수 있도록 하는 파일
    • deploymain으로 푸시가 이루어지면 자동 배포가 이루어지도록 하는 파일
  • concurrency 설정으로 동시성을 정해주는 이유는 여러 PR이 동시에 들어온 경우에 여러 PR에 대한 빌드 및 테스트 작업이 동시에 실행되면서 충돌이 생길 수 있기 때문입니다.
# 동시성 설정
concurrency: preview-${{ github.ref }}
  • 이외의 설정들에 대한 설명은 모두 주석으로 추가했습니다!

‼️ 각자 VSC에서 Github Actions 익스텐션을 설치해주세요!

Reference

Automating and deploying workflows with GitHub Actions

@urjimyu urjimyu added the 초기세팅 🍽️ 초기 세팅 label Dec 30, 2023
@urjimyu urjimyu self-assigned this Dec 30, 2023
Copy link
Member

@imeureka imeureka left a comment

Choose a reason for hiding this comment

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

🎁우와 저는 이번에 Github Actions를 처음 사용해봐서 다 신기하네요!! 명확한 설명 감사합니다!
추가적으로 영상을 찾아보니 생활코딩- github.com - action
이런 좋은 영상도 있어 앞에 짤막하게 보니 더 이해가 잘 되는 것 같습니다!

Copy link
Contributor

@hoeun0723 hoeun0723 left a comment

Choose a reason for hiding this comment

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

자세한 설명과 세팅 감사합니다!!

@ExceptAnyone
Copy link
Member

바로 익스텐션 다운 받았습니다 !! 깃허브 액션 사용해볼 생각에 벌써부터 두근거립니다 :)

@urjimyu urjimyu merged commit 4680d5f into develop Jan 1, 2024
@urjimyu urjimyu deleted the feat/#1-github-actions branch February 6, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[초기세팅] Github Actions 적용
4 participants