Skip to content

Commit

Permalink
Merge pull request #134 from mafia-together/chore/#134-dev-CICD
Browse files Browse the repository at this point in the history
chore : dev CI/CD 파이프라인 수정
  • Loading branch information
waterricecake authored Oct 17, 2024
2 parents 545ab08 + 8a3b2e8 commit 3a5365c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '20'

- name: Install dependencies
run: npm install
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/frontend-dev-CICD.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Build Test
name: Dev CI/CD

on:
push:
branches:
- dev
branches: [ dev ]

permissions:
contents: read

jobs:
build:
runs-on: dev
runs-on:
group: Default
labels: [ self-hosted, dev ]
permissions:
pull-requests: write

steps:
- name: Checkout code
Expand All @@ -16,13 +22,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

- name: 빌드 파일 deploy 파일로 이동
run: cp -f /dist /home/ubuntu/dist
- name: 빌드 파일
run: cp -rf ./dist ~/

0 comments on commit 3a5365c

Please sign in to comment.