Skip to content

Fix. error

Fix. error #304

Workflow file for this run

name: Deploy to ECR - prod.
on:
push:
branches:
- 'stage'
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.10.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: ✅ 체크아웃 source code.
uses: actions/checkout@v3
- name: ⚙️ ${{ matrix.node-version }} 버전의 노드로 세팅합니다.
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: ✨ 패키지 설치
working-directory: ./
run: |
yarn
yarn add -D tsc-alias tsc
- name: ✨ 빌드 과정을 시작
working-directory: ./
run: yarn run build
- name: zip file
run: zip -r orefinger.api.zip ./dist ./scripts ./appspec.yml ./.env ./package.json
- name: 🌎 AWS에 접속
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
- name: upload to S3
run: aws s3 cp --region ap-northeast-2 ./orefinger.api.zip s3://orefinger-pipline/orefinger-bat/
- name: deploy with AWS codeDeploy
run: aws deploy create-deployment
--application-name orefinger-bat
--deployment-config-name CodeDeployDefault.OneAtATime
--deployment-group-name orefinger-api-deploy
--s3-location bucket=orefinger-pipline,bundleType=zip,key=orefinger-bat/orefinger.api.zip