Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
zhaoxuanchao
zxc-antd-demo
Commits
d29062b7
Commit
d29062b7
authored
Aug 06, 2021
by
zhaoxuanchao
Browse files
Update .gitlab-ci.yml
parent
f070c929
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
15 deletions
+29
-15
.gitlab-ci.yml
.gitlab-ci.yml
+29
-15
No files found.
.gitlab-ci.yml
View file @
d29062b7
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment