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

GitAction 스크립트를 작성하라 #47

Merged
merged 4 commits into from
Sep 13, 2023
Merged

GitAction 스크립트를 작성하라 #47

merged 4 commits into from
Sep 13, 2023

Conversation

jihwooon
Copy link
Owner

@jihwooon jihwooon commented Sep 13, 2023

Git 배포 시 CI/CD 하는 동작하는 GitAction을 추가했습니다

@jihwooon jihwooon force-pushed the issue-34 branch 6 times, most recently from 479a5e5 to 085ee89 Compare September 13, 2023 11:33
Git 배포를 하면 node server의 테스트 및 캐싱을 합니다
완료가 되면 배포가 됩니다
@jihwooon jihwooon changed the title Git 배포 시 CI/CD 하는 GitAction을 작성하라 GitAction 스크립트를 작성하라 Sep 13, 2023
GitHub에 CI가 실행이 되면 식별을 하기 위해 name을 수정했습니다
Comment on lines 27 to 29
- name : .env setting
run : |
echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" > .env
Copy link
Owner Author

Choose a reason for hiding this comment

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

JWT Secret 키를 사용하지 않으면 Jwt 토큰을 생성 할 수 업습니다.
GItHub 환경 설정에 키를 바인딩을 해서 GitAction에서 해당 키를 불러 올 수 있습니다

Comment on lines 44 to 46
- name: ci
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
run: npm ci
Copy link
Owner Author

Choose a reason for hiding this comment

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

npm ci는 npm에 변경 사항이 있으면 CI가 실행이 됩니다

@jihwooon jihwooon merged commit 073e6ea into main Sep 13, 2023
1 check passed
@jihwooon jihwooon deleted the issue-34 branch September 13, 2023 12:35
@jihwooon jihwooon linked an issue Sep 13, 2023 that may be closed by this pull request
@jihwooon jihwooon self-assigned this Sep 13, 2023
@jihwooon jihwooon added CI/CD and removed Feture labels Sep 15, 2023
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.

Git Action 스크립트를 작성하라
1 participant