From 768aba282d77cec5f27e2a9654c54a2023de9bb3 Mon Sep 17 00:00:00 2001 From: sb Date: Sat, 11 Jul 2026 10:41:29 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20GitLab=20CI=20=ED=8C=8C=EC=9D=B4=ED=94=84?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=EC=B6=94=EA=B0=80=20(dev=20=EC=A0=84?= =?UTF-8?q?=EC=9A=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit node:22 에서 npm run build(vue-tsc 타입체크 + vite build). dev 브랜치 푸시에서만 실행. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..05a85b6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# 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 \ No newline at end of file