Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-CI
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
twb
gitlab-CI
Commits
eec8556b
Commit
eec8556b
authored
Sep 04, 2020
by
twb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
19ef976b
Pipeline
#977
passed with stages
in 3 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
.gitlab-ci.yml
+13
-15
No files found.
.gitlab-ci.yml
View file @
eec8556b
stages
:
-
build
-
deploy
cache
:
cache
:
paths
:
paths
:
-
node_modules/
-
node_modules/
variables
:
variables
:
UMI_ENV
:
"
prod"
UMI_ENV
:
"
prod"
PROJECT_PATH
:
"
/sport/"
PROJECT_PATH
:
"
/sport/"
init
:
build_job
:
stage
:
build
stage
:
build
only
:
only
:
-
release
-
release
script
:
script
:
-
echo ${UMI_ENV}
-
echo ${PROJECT_PATH}
-
yarn --ignore-optional --registry=https://registry.npm.taobao.org
-
yarn --ignore-optional --registry=https://registry.npm.taobao.org
-
echo 'hello test' > ./out.js
-
echo "test" > ./out.js
artifacts
:
#build:
paths
:
# stage: build
-
./out.js
# only:
expire_in
:
1 week
# - release
deploy_job
:
# script:
# - yarn build
#
deploy
:
stage
:
deploy
stage
:
deploy
only
:
only
:
-
release
-
release
script
:
script
:
-
cp -f ./out.js /tmp/out.js
-
cp -f ./out.js /tmp/out.js
-
echo "end deploy"
dependencies
:
\ No newline at end of file
-
build_job
\ No newline at end of file
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