Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
요약
cd script 작성
작업 내용
Main에 푸시되면 github action 에 의해 repo의 dockerfile 이 빌드되어 dockerhub 에 이미지로 올라가고,
github action 이 ec2 서버에 접속하여 docker compose up 을 통해 spring container 와 nginx container 를 실행합니다.
이 때, ssh 포트를 다 여는건 찝찝해서... github action 의 ip 를 얻어와서 aws 보안그룹에 추가했다가, 작업이 완료되면 삭제되는 부분을 스크립트에 추가했습니다.
기타 (논의하고 싶은 부분)
pr 배포 확인 후에 해당 부분 삭제해서 다시 커밋할게요!타 직군 전달 사항
close #21