feat: 비밀번호 찾기 Swagger 업데이트 #20
Workflow file for this run
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
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 |