Skip to content

โœจ [Feat]: ๋ฆฌ๋ทฐ ์‹ ๊ณ  API ๊ตฌํ˜„ #22

โœจ [Feat]: ๋ฆฌ๋ทฐ ์‹ ๊ณ  API ๊ตฌํ˜„

โœจ [Feat]: ๋ฆฌ๋ทฐ ์‹ ๊ณ  API ๊ตฌํ˜„ #22

Workflow file for this run

name: BookJam CI/CD
on:
pull_request:
types: [closed]
workflow_dispatch: # ์ˆ˜๋™ ์‹คํ–‰๋„ ๊ฐ€๋Šฅํ•˜๋„๋ก
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master'
steps:
- uses: actions/checkout@v3
- name: Setup Node.js 18.x # ๋…ธ๋“œ ์„ค์น˜
uses: actions/setup-node@v3
with:
node-version: 18.x # ๋ฒ„์ „ ํ™•์ธ!
- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss
utcOffset: '+09:00' # build ์‹œ์  ์‹œ๊ฐ„ ํ™•๋ณด
- name: Show Current Time
run: echo "CurrentTime=$"
shell: bash # ํ™•๋ณดํ•œ ์‹œ๊ฐ„ ํ™•์ธ
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Generate deployment package
run: zip -r deploy.zip .
- name: Beanstalk Deploy
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }} # repo secrets์— ์ถ”๊ฐ€ํ•  ๊ฒƒ
aws_secret_key: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }} # repo secrets์— ์ถ”๊ฐ€ํ•  ๊ฒƒ
application_name: bookjam-dev # beanstalk application name --> ํ—ท๊ฐˆ๋ฆฌ์ง€ ๋ง ๊ฒƒ
environment_name: Bookjam-dev-env # beanstalk environment name --> ํ—ท๊ฐˆ๋ฆฌ์ง€ ๋ง ๊ฒƒ
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
region: ap-northeast-3
deployment_package: deploy.zip
wait_for_environment_recovery: 180