提交 1d6d1691 authored 作者: 张伊明's avatar 张伊明

fix 更改ci配置

上级 db031ccd
......@@ -2,23 +2,18 @@ stages:
- build
- deploy
default:
tags:
- risk-monitor-frontend
cache:
key:
files:
- package-lock.json
key: "$CI_COMMIT_REF_SLUG"
paths:
- .npm/
policy: pull-push
build_pre:
stage: build
image: node:18-alpine
rules:
- if: '$CI_COMMIT_BRANCH == "pre"'
tags:
- risk-monitor-frontend
only:
- pre
script:
- npm config set cache .npm --global
- npm ci --prefer-offline --no-audit --no-fund
......@@ -31,8 +26,10 @@ build_pre:
deploy_pre:
stage: deploy
image: alpine:3.20
rules:
- if: '$CI_COMMIT_BRANCH == "pre"'
tags:
- risk-monitor-frontend
only:
- pre
dependencies:
- build_pre
script:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论