This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
devopsdemo
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
创建drone文件
interface
weishao
2 years ago
parent
19abb5e1a2
commit
d6a7fcd988
1 changed files
with
32 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+32
-0
.drone.yml
+ 32
- 0
.drone.yml
View File
@@ -0,0 +1,32 @@
kind: pipeline
type: docker
name: default
steps:
- name: package
image: maven:3-jdk-10
commands:
- mvn clean package -Dmaven.skip.test=true
when:
branch: master
event: push
- name: replace-war
image: busybox
volumes:
- name: wars-dir
path: /home/wars
commands:
- mv target/webssh.war /home/wars/
- name: restart
image: docker
commands:
- docker restart laughing_murdock
volumes:
- name: wars-dir
host:
path: /home/ww/wars
trigger:
branch:
- master
Write
Preview
Loading…
Cancel
Save