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:
- prepare
- build
- deploy
before_script:
- echo "before_script"
precompiled:
stage: build
tags:
- build
install_dependencies:
stage: prepare
script:
- echo "Hello precompiled"
# 测试环境
test-env:
stage: deploy
tags:
- build
environment:
name: development
- yarn install --frozen-lockfile
build_code:
stage: build
only:
- dev
- beta
- production
environment: $CI_COMMIT_BRANCH
script:
- echo "Hello precompiled"
\ No newline at end of file
- yarn run build
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