From 0b59e06694262c3e200aa96e45d0b811155c7274 Mon Sep 17 00:00:00 2001 From: JWJung-99 <39busy@naver.com> Date: Tue, 3 Dec 2024 20:53:32 +0900 Subject: [PATCH] =?UTF-8?q?Deploy:=20=EB=B0=B0=ED=8F=AC=20=EC=9E=90?= =?UTF-8?q?=EB=8F=99=ED=99=94=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 21 ++++++++++----------- deploy.sh | 10 ++-------- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4c6b5a9..f6b9780 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -20,7 +20,7 @@ jobs: run: pnpm -v - name: Install Dependencies - run: pnpm install --frozen-lockfile + run: pnpm install - name: Build run: pnpm build @@ -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 diff --git a/deploy.sh b/deploy.sh index df656c6..116c471 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,8 +1,2 @@ -#!/bin/bash -REPOSITORY=/home/ubuntu/deploy - -cd $REPOSITORY - -sudo pnpm install - -sudo pnpm exec pm2 reload all \ No newline at end of file +#!/usr/bin/env bash +echo "> FE 배포" \ No newline at end of file