Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
java-devop-sentry
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouzihao
java-devop-sentry
Commits
29b32554
Commit
29b32554
authored
Mar 23, 2020
by
zhouzihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf-添加ci文件
parent
c0e6df3b
Pipeline
#92
failed with stages
in 1 second
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
.gitlab-ci.yml
.gitlab-ci.yml
+39
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
29b32554
image
:
maven:3.6.0-jdk-8-alpine
stages
:
-
build
-
deploy
cache
:
key
:
maven-repository-cache
paths
:
-
.m2
variables
:
MAVEN_OPTS
:
"
-Dmaven.repo.local=.m2"
dep
:
stage
:
build
script
:
-
mvn clean package -Dmaven.test.skip=true
-
rm /root/tmpdata/*.jar
-
cp target/app.jar /root/tmpdata/
tags
:
-
'
zzh-test'
# 测试环境部署
run
:
stage
:
deploy
script
:
-
rm /root/data/*.jar
-
cp /root/tmpdata/*.jar /root/data/
-
cd /root/data
-
docker-compose down && docker-compose up -d
environment
:
name
:
zzh-test
when
:
manual
only
:
-
master
tags
:
-
'
zzh-test'
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