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

fix 更改ci配置

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