This commit is contained in:
parent
be0eb1e1fd
commit
3bd85df0d2
10
.drone.yml
10
.drone.yml
@ -11,8 +11,14 @@ steps:
|
|||||||
- env
|
- env
|
||||||
- name: build-service
|
- name: build-service
|
||||||
image: maven:3-jdk-8
|
image: maven:3-jdk-8
|
||||||
|
volumes:
|
||||||
|
- name: test-dir
|
||||||
|
path: /root/aaa
|
||||||
commands:
|
commands:
|
||||||
# - echo "Building Service: ${SERVICE}"
|
# - echo "Building Service: ${SERVICE}"
|
||||||
|
- mkdir -p /root/aaa
|
||||||
|
- cd /root/aaa
|
||||||
|
- touch test.txt
|
||||||
- |
|
- |
|
||||||
if [ ${SERVICE} = "gateway" ]; then
|
if [ ${SERVICE} = "gateway" ]; then
|
||||||
echo "Building Gateway Service..."
|
echo "Building Gateway Service..."
|
||||||
@ -36,3 +42,7 @@ steps:
|
|||||||
echo "Testing All Services..."
|
echo "Testing All Services..."
|
||||||
# 如果有其他服务,可以在这里继续添加
|
# 如果有其他服务,可以在这里继续添加
|
||||||
fi
|
fi
|
||||||
|
volumes:
|
||||||
|
- name: test-dir
|
||||||
|
host:
|
||||||
|
path: /root/test-dir # 从宿主机中挂载的目录
|
Loading…
Reference in New Issue
Block a user