Update .gitlab-ci.yml

This commit is contained in:
lijinyang
2023-02-14 16:35:05 +08:00
parent 89dcd7b253
commit 56f010e991

View File

@@ -10,7 +10,7 @@ cache:
- package.json - package.json
paths: paths:
- node_modules - node_modules
- dist/ # - dist/
before_script: before_script:
- export CNUI_TAG=$(date +%Y%m%d%H%M%S) - export CNUI_TAG=$(date +%Y%m%d%H%M%S)
@@ -41,6 +41,11 @@ build_project:
- cnpm install --save-dev --unsafe-perm - cnpm install --save-dev --unsafe-perm
- echo "npm run build" - echo "npm run build"
- cnpm run build - cnpm run build
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
when: on_success
paths:
- dist/
only: only:
- dev-22.12 - dev-22.12
- tags - tags
@@ -48,6 +53,8 @@ build_project:
- galaxy - galaxy
build_image: build_image:
dependencies:
- build_project
stage: build_image stage: build_image
script: script:
- echo "docker build" - echo "docker build"
@@ -64,6 +71,8 @@ build_image:
build_release_image: build_release_image:
dependencies:
- build_project
stage: build_image stage: build_image
script: script:
- echo 'tag名称是' - echo 'tag名称是'