-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jihwooon
force-pushed
the
issue-34
branch
6 times, most recently
from
September 13, 2023 11:33
479a5e5
to
085ee89
Compare
Git 배포를 하면 node server의 테스트 및 캐싱을 합니다 완료가 되면 배포가 됩니다
GitHub에 CI가 실행이 되면 식별을 하기 위해 name을 수정했습니다
jihwooon
commented
Sep 13, 2023
.github/workflows/server-deploy.yml
Outdated
Comment on lines
27
to
29
- name : .env setting | ||
run : | | ||
echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" > .env |
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.
JWT Secret 키를 사용하지 않으면 Jwt 토큰을 생성 할 수 업습니다.
GItHub 환경 설정에 키를 바인딩을 해서 GitAction에서 해당 키를 불러 올 수 있습니다
.github/workflows/server-deploy.yml
Outdated
Comment on lines
44
to
46
- name: ci | ||
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | ||
run: npm ci |
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.
npm ci
는 npm에 변경 사항이 있으면 CI
가 실행이 됩니다
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Git 배포 시 CI/CD 하는 동작하는 GitAction을 추가했습니다