'build'
This commit is contained in:
parent
3f21534017
commit
3367d03039
22
.drone.yml
22
.drone.yml
@ -13,14 +13,9 @@ steps:
|
|||||||
SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量
|
SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量
|
||||||
commands:
|
commands:
|
||||||
- echo "Building Service: ${SERVICE}"
|
- echo "Building Service: ${SERVICE}"
|
||||||
- >
|
- if [ "${SERVICE}" = "gateway-service" ]; then echo "Building Gateway Service..."; fi
|
||||||
if [ "${SERVICE}" = "gateway-service" ]; then
|
- if [ "${SERVICE}" = "system-service" ]; then echo "Building System Service..."; fi
|
||||||
echo "Building Gateway Service..."
|
- if [ "${SERVICE}" = "" ]; then echo "Building All Services..."; fi
|
||||||
elif [ "${SERVICE}" = "system-service" ]; then
|
|
||||||
echo "Building System Service..."
|
|
||||||
else
|
|
||||||
echo "Building All Services..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: test-service
|
- name: test-service
|
||||||
image: maven:3-jdk-8
|
image: maven:3-jdk-8
|
||||||
@ -28,14 +23,9 @@ steps:
|
|||||||
SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量
|
SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量
|
||||||
commands:
|
commands:
|
||||||
- echo "Testing Service: ${SERVICE}"
|
- echo "Testing Service: ${SERVICE}"
|
||||||
- >
|
- if [ "${SERVICE}" = "gateway-service" ]; then echo "Testing Gateway Service..."; fi
|
||||||
if [ "${SERVICE}" = "gateway-service" ]; then
|
- if [ "${SERVICE}" = "system-service" ]; then echo "Testing System Service..."; fi
|
||||||
echo "Testing Gateway Service..."
|
- if [ "${SERVICE}" = "" ]; then echo "Testing All Services..."; fi
|
||||||
elif [ "${SERVICE}" = "system-service" ]; then
|
|
||||||
echo "Testing System Service..."
|
|
||||||
else
|
|
||||||
echo "Testing All Services..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
SERVICE:
|
SERVICE:
|
||||||
|
Loading…
Reference in New Issue
Block a user