Commit d29062b7 authored by zhaoxuanchao's avatar zhaoxuanchao
Browse files

Update .gitlab-ci.yml

parent f070c929
image: node:12
cache:
key: ${CI_COMMIT_SHA}_node_modules
untracked: true
paths:
- node_modules/
policy: pull-push
stages: stages:
- prepare
- build - build
- deploy - deploy
before_script:
- echo "before_script" install_dependencies:
precompiled: stage: prepare
stage: build
tags:
- build
script: script:
- echo "Hello precompiled" - yarn install --frozen-lockfile
# 测试环境
test-env: build_code:
stage: deploy stage: build
tags: only:
- build - dev
environment: - beta
name: development - production
environment: $CI_COMMIT_BRANCH
script: script:
- echo "Hello precompiled" - yarn run build
\ No newline at end of file artifacts:
name: "${CI_COMMIT_SHA}_build"
untracked: true
paths:
- build/
expire_in: 3 hrs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment