Skip to content

Commit 3a4ce48

Browse files
committed
refactor: workflow 주석 제거
1 parent 33517dd commit 3a4ce48

File tree

3 files changed

+1
-147
lines changed

3 files changed

+1
-147
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 1 addition & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -35,33 +35,6 @@ jobs:
3535
if: steps.cache-deps.outputs.cache-hit != 'true'
3636
run: yarn install
3737

38-
# setup:
39-
# runs-on: ubuntu-latest
40-
# outputs:
41-
# cache-key: ${{ steps.cache-deps.outputs.cache-hit }}
42-
# steps:
43-
# - name: Checkout repository
44-
# uses: actions/checkout@v3
45-
46-
# - name: Set up Node.js
47-
# uses: actions/setup-node@v3
48-
# with:
49-
# node-version: "23"
50-
51-
# # 프론트엔드 의존성 캐시 설정
52-
# - name: Cache Yarn dependencies for frontend
53-
# id: cache-deps
54-
# uses: actions/cache@v3
55-
# with:
56-
# path: node_modules
57-
# key: ${{ runner.os }}-frontend-yarn-${{ hashFiles('yarn.lock') }}
58-
59-
# # 프론트엔드 의존성 설치
60-
# - name: Install frontend dependencies
61-
# if: steps.cache-frontend-deps.outputs.cache-hit != 'true'
62-
# working-directory: ./apps/frontend
63-
# run: yarn install
64-
6538
lint:
6639
runs-on: ubuntu-latest
6740
needs: setup
@@ -91,36 +64,6 @@ jobs:
9164
if: failure()
9265
run: echo "⚠️ lint 실행 도중 경고가 발생했습니다. 확인해주세요."
9366

94-
# frontend-lint:
95-
# runs-on: ubuntu-latest
96-
# needs: setup-frontend
97-
# steps:
98-
# - name: Checkout repository
99-
# uses: actions/checkout@v3
100-
101-
# - name: Set up Node.js
102-
# uses: actions/setup-node@v3
103-
# with:
104-
# node-version: "23"
105-
106-
# # 프론트엔드 의존성 캐시 복원
107-
# - name: Restore Yarn dependencies for frontend
108-
# uses: actions/cache@v3
109-
# with:
110-
# path: apps/frontend/node_modules
111-
# key: ${{ runner.os }}-frontend-yarn-${{ hashFiles('apps/frontend/yarn.lock') }}
112-
113-
# # 프론트엔드 린트 실행
114-
# - name: Run frontend lint
115-
# working-directory: ./apps/frontend
116-
# run: yarn lint
117-
# continue-on-error: true
118-
119-
# # 프론트엔드 린트 경고 포스트
120-
# - name: Post frontend lint warning if any
121-
# if: failure()
122-
# run: echo "⚠️ 프론트엔드 lint 실행 도중 경고가 발생했습니다. 확인해주세요."
123-
12467
build:
12568
runs-on: ubuntu-latest
12669
needs: setup
@@ -140,46 +83,9 @@ jobs:
14083
path: node_modules
14184
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
14285

143-
# 루트 의존성 설치
144-
# - name: Install root dependencies
145-
# if: steps.cache-root-deps.outputs.cache-hit != 'true'
146-
# run: yarn install
147-
148-
# # 백엔드 의존성 캐시 복원
149-
# - name: Restore Yarn dependencies for backend
150-
# uses: actions/cache@v3
151-
# with:
152-
# path: apps/backend/node_modules
153-
# key: ${{ runner.os }}-backend-yarn-${{ hashFiles('apps/backend/yarn.lock') }}
154-
155-
# 백엔드 빌드 실행
86+
# 빌드 실행
15687
- name: Run build
15788
run: yarn build
158-
159-
# frontend-build:
160-
# runs-on: ubuntu-latest
161-
# needs: setup-frontend
162-
# steps:
163-
# - name: Checkout repository
164-
# uses: actions/checkout@v3
165-
166-
# - name: Set up Node.js
167-
# uses: actions/setup-node@v3
168-
# with:
169-
# node-version: "23"
170-
171-
# # 프론트엔드 의존성 캐시 복원
172-
# - name: Restore Yarn dependencies for frontend
173-
# uses: actions/cache@v3
174-
# with:
175-
# path: apps/frontend/node_modules
176-
# key: ${{ runner.os }}-frontend-yarn-${{ hashFiles('apps/frontend/yarn.lock') }}
177-
178-
# # 프론트엔드 빌드 실행
179-
# - name: Run frontend build
180-
# working-directory: ./apps/frontend
181-
# run: yarn build
182-
18389
test:
18490
runs-on: ubuntu-latest
18591
needs: [setup, build]

.github/workflows/main.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,6 @@ jobs:
1818
run: |
1919
echo "${{secrets.DEVELOPMENT_ENV}}" > ./.env
2020
21-
# # Node.js 설치
22-
# - name: Set up Node.js
23-
# uses: actions/setup-node@v3
24-
# with:
25-
# node-version: "23"
26-
# 패키지 설치 및 빌드
27-
# - name: Install dependencies and build
28-
# run: |
29-
# yarn install
30-
# yarn build
31-
32-
# aws cli를 통해 ncloud object storage 업로드
33-
# - name: Configure AWS credentials
34-
# env:
35-
# NCLOUD_ACCESS_KEY_ID: ${{ secrets.NCLOUD_ACCESS_KEY_ID }}
36-
# NCLOUD_SECRET_ACCESS_KEY: ${{ secrets.NCLOUD_SECRET_ACCESS_KEY }}
37-
# run: |
38-
# aws configure set aws_access_key_id $NCLOUD_ACCESS_KEY_ID
39-
# aws configure set aws_secret_access_key $NCLOUD_SECRET_ACCESS_KEY
40-
# aws configure set region ap-northeast-2
41-
# aws --endpoint-url=https://kr.object.ncloudstorage.com s3 cp ./frontend/dist s3://octodocs/ --recursive --debug
42-
# CD:
43-
# runs-on: ubuntu-latest
44-
45-
# steps:
46-
# 코드 체크아웃
47-
# - name: Checkout code
48-
# uses: actions/checkout@v3
49-
50-
# # .env 파일 생성 후 붙여넣기
51-
# - name: Create .env file
52-
# run: |
53-
# echo "${{secrets.DEVELOPMENT_ENV}}" > ./.env
5421
# sh 실행
5522
- name: Connect to Remote Server and Run Commands
5623
env:
@@ -126,22 +93,3 @@ jobs:
12693
SSH_KEY: ${{ secrets.REMOTE_PRIVATE_KEY }}
12794
run: |
12895
ssh -o StrictHostKeyChecking=no $REMOTE_USER@$REMOTE_HOST "nohup node /home/root/app/octodocs/apps/backend/dist/main.js > nohup.out 2> nohup.err < /dev/null &"
129-
130-
# # 배포용 쉘 스크립트 파일 전송
131-
# - name: Copy deploy.sh to remote server
132-
# uses: appleboy/scp-action@master
133-
# with:
134-
# host: ${{ secrets.REMOTE_DEV_IP }}
135-
# username: ${{ secrets.REMOTE_USER }}
136-
# key: ${{ secrets.REMOTE_PRIVATE_KEY }}
137-
# source: ./deploy.sh
138-
# target: /home/root
139-
# # 쉘 스크립트 실행
140-
# - name: Run command on remote server
141-
# uses: appleboy/ssh-action@master
142-
# with:
143-
# host: ${{ secrets.REMOTE_DEV_IP }}
144-
# username: ${{ secrets.REMOTE_USER }}
145-
# key: ${{ secrets.REMOTE_PRIVATE_KEY }}
146-
# script: |
147-
# sh /home/root/deploy.sh

db

36 KB
Binary file not shown.

0 commit comments

Comments
 (0)