이 인스턴스는 Gitea → .gitlab-ci.yml 미사용. sb-front 컨벤션 따라 .gitea/workflows/ci.yaml. npm run build(vue-tsc 타입체크 + vite build). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
# dev 브랜치 전용 CI (요청: dev 에만).
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [dev]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '22'
|
||||||
|
# cache 제거: Gitea 캐시 서버 미연결 시 'Save cache' 후처리가 수 분 hang → '가짜 실패' 유발(sb-front 와 동일)
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
# build = vue-tsc 타입체크 + vite 빌드 (test/lint 스크립트는 아직 없음)
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Upload build output
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
path: dist
|
||||||
|
retention-days: 7
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
# GitLab CI — dognation 프론트 (Vue3 + TS + Vite / Capacitor)
|
|
||||||
# dev 브랜치 푸시에서만 실행. build 스크립트가 vue-tsc 타입체크 + vite 빌드를 함께 수행.
|
|
||||||
image: node:22
|
|
||||||
|
|
||||||
variables:
|
|
||||||
npm_config_cache: "$CI_PROJECT_DIR/.npm"
|
|
||||||
|
|
||||||
cache:
|
|
||||||
key: "$CI_COMMIT_REF_SLUG"
|
|
||||||
paths:
|
|
||||||
- .npm/
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_BRANCH == "dev"'
|
|
||||||
script:
|
|
||||||
- npm ci
|
|
||||||
- npm run build # vue-tsc --noEmit && vite build
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- dist/
|
|
||||||
expire_in: 1 week
|
|
||||||
Reference in New Issue
Block a user