Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ci-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yong.Yang
ci-test
Commits
911455ae
Commit
911455ae
authored
Jul 23, 2021
by
Yong.Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 .gitlab-ci.yml
parent
bcdfbfd5
Pipeline
#390
passed with stages
in 2 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
.gitlab-ci.yml
.gitlab-ci.yml
+27
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
911455ae
# 打包任务
build-job
:
stage
:
build
# 指定标签,只有具有该标签的runner才会执行
tags
:
-
dev
script
:
# 使用Maven打包
-
echo 'runner build'
-
java -version
# - mvn clean package -Dfile.encoding=UTF-8 -Dmaven.test.skip=true
# 将jar包、Dockerfile、运行脚本复制到指定目录
# - cp target/mall-tiny-gitlab-1.0-SNAPSHOT.jar /mydata/build/mall-tiny-gitlab-1.0-SNAPSHOT.jar
# 部署任务
deploy-job
:
stage
:
deploy
tags
:
-
dev
services
:
-
java:8
-
node:latest
script
:
# - chmod +x run.sh
-
echo 'runner deploy'
-
echo 'runner deploy'
-
node -v
\ 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