Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- CSS
- updateone
- TypeScript #문법
- 정적 페이지
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- typescript #unknown
- __dirname
- Passport
- serializeUser
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- react#로스트아크#mbti#테스트
- insertone
- ejs 문법
- sendFile
- e.target
- github#githubpages#빈화면#basename
- github#로컬저장소#원격저장소
- mongodb 입출력
- github#githubpages#gh-pages#deploy
- typescript #import #export #*
- connect-mongo
- typescript #react #jsx #component #usestate
- Promise #async #await #try #catch
- git vscode
- deserializeUser
- updatemany
- typescript #class #extends #public #private #protected #static
- typescript #constructor #class #public #private
- GitHub Actions
- expess
Archives
- Today
- Total
VaIice의 이야기
[Node.js] Github Actions를 이용한 CI 구축 본문
1. Github 환경 변수 등록
2. Github Actions workflow
폴더의 root에서 .github/workflow/deploy.yml
name: deploy
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Create .env file
run: |
echo "PORT=${{ secrets.PORT }}" > .env
echo "ACCESS_KEY=${{ secrets.ACCESS_KEY }}" >> .env
echo "BUCKET_NAME=${{ secrets.BUCKET_NAME }}" >> .env
echo "DB_URL=${{ secrets.DB_URL }}" >> .env
echo "SECRET_ACCESS_KEY=${{ secrets.SECRET_ACCESS_KEY }}" >> .env
- name: Build server files
run: npm install
npm run build
'[Node.js]' 카테고리의 다른 글
[Node.js] AWS Elastic Beanstalk를 이용한 서버 배포 (0) | 2024.07.24 |
---|---|
[Node.js] API별 파일 분리 (0) | 2024.07.20 |
[Node.js] 이미지 보관 - AWS S3 (2) (2) | 2024.07.19 |
[Node.js] 이미지 보관 - AWS S3 (1) (2) | 2024.07.19 |
[Node.js] 환경변수 관리 (3) | 2024.07.19 |