构建修改
This commit is contained in:
parent
5fdffbbdbc
commit
115edac82b
16
.drone.yml
16
.drone.yml
@ -1,13 +1,12 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: ludu-system-drone
|
name: ludu-system-drone
|
||||||
# 定义全局环境变量
|
|
||||||
environment:
|
|
||||||
serverName:
|
|
||||||
from_secret: serverName
|
|
||||||
steps:
|
steps:
|
||||||
- name: package
|
- name: package
|
||||||
image: maven:3-jdk-8
|
image: maven:3-jdk-8
|
||||||
|
environment:
|
||||||
|
serverName:
|
||||||
|
from_secret: serverName
|
||||||
volumes:
|
volumes:
|
||||||
- name: maven-cache
|
- name: maven-cache
|
||||||
path: /root/.m2
|
path: /root/.m2
|
||||||
@ -79,6 +78,9 @@ steps:
|
|||||||
|
|
||||||
- name: copy-to-object
|
- name: copy-to-object
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
environment:
|
||||||
|
serverName:
|
||||||
|
from_secret: serverName
|
||||||
settings:
|
settings:
|
||||||
host: 101.43.112.107
|
host: 101.43.112.107
|
||||||
username: root
|
username: root
|
||||||
@ -137,6 +139,9 @@ steps:
|
|||||||
|
|
||||||
- name: build-other-service
|
- name: build-other-service
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
environment:
|
||||||
|
serverName:
|
||||||
|
from_secret: serverName
|
||||||
settings:
|
settings:
|
||||||
host: 120.46.37.243
|
host: 120.46.37.243
|
||||||
username: root
|
username: root
|
||||||
@ -154,6 +159,9 @@ steps:
|
|||||||
|
|
||||||
- name: object-build
|
- name: object-build
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
environment:
|
||||||
|
serverName:
|
||||||
|
from_secret: serverName
|
||||||
settings:
|
settings:
|
||||||
host: 121.36.203.133
|
host: 121.36.203.133
|
||||||
username: root
|
username: root
|
||||||
|
Loading…
Reference in New Issue
Block a user