Skip to content

Commit

Permalink
Merge pull request #16 from TEAM-FLASH/dev
Browse files Browse the repository at this point in the history
Version 0.0 : 7차 배포 테스트
  • Loading branch information
JWJung-99 authored Dec 3, 2024
2 parents f3f5577 + 0b59e06 commit 53d4b63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v2

- name: Check Node v
run: node -v
Expand All @@ -20,7 +20,7 @@ jobs:
run: pnpm -v

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm install

- name: Build
run: pnpm build
Expand All @@ -37,15 +37,14 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

- name: Upload to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: aws s3 cp --region ap-northeast-2 ./build.zip s3://toucheese-team4-s3/build.zip

- name: Verify S3 Upload
run: aws s3 ls s3://toucheese-team4-s3/

- name: Deploy
run: |
aws deploy create-deployment \
--application-name TOUCHEESE-TEAM4 \
--deployment-config-name CodeDeployDefault.AllAtOnce \
--deployment-group-name TOUCHEESE-TEAM4-Deploy-Group \
--s3-location bucket=toucheese-team4-s3,bundleType=zip,key=build.zip
run: aws deploy create-deployment
--application-name TOUCHEESE-TEAM4
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name TOUCHEESE-TEAM4-Deploy-Group
--s3-location bucket=toucheese-team4-s3,key=build.zip,bundleType=zip
10 changes: 2 additions & 8 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
#!/bin/bash
REPOSITORY=/home/ubuntu/deploy

cd $REPOSITORY

sudo pnpm install

sudo pnpm exec pm2 reload all
#!/usr/bin/env bash
echo "> FE 배포"

0 comments on commit 53d4b63

Please sign in to comment.