-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
35 lines (32 loc) · 756 Bytes
/
.drone.yml
File metadata and controls
35 lines (32 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
kind: pipeline
type: docker
name: db-metadata发布到maven私服
steps:
# 添加认证信息
- name: authenticate
image: robertstettner/drone-mvn-auth
pull: always
settings:
servers:
- id: asoco-nexus-release
username: admin
password: N783?23hthj_vP
- id: asoco-nexus-snapshot
username: admin
password: N783?23hthj_vP
when:
branch:
- spring-boot
# 打包发布到nexus仓库中
- name: deploy-to-nexus
image: maven:3-alpine
commands:
- mvn -f db-metadata-parent/pom.xml -DskipTests clean deploy -gs settings.xml
when:
branch:
- spring-boot
trigger:
ref:
- refs/heads/spring-boot
- refs/heads/sp-release-**