From f82a1e9aef6029fb883e60b4ca4f258bcc7a1857 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Thu, 22 Aug 2024 17:28:20 +0800 Subject: [PATCH] 'build' --- .drone.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 598175a..d4ad1a5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,13 +4,11 @@ name: microservice-build # 定义全局环境变量 environment: - SERVICE: "" + SERVICE: ${DRONE_SERVICE} steps: - name: build-service image: maven:3-jdk-8 - environment: - SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量 commands: # - echo "Building Service: ${SERVICE}" - if [ "${SERVICE}" = "gateway-service" ]; then echo "Building Gateway Service..."; fi @@ -19,8 +17,6 @@ steps: - name: test-service image: maven:3-jdk-8 - environment: - SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量 commands: # - echo "Testing Service: ${SERVICE}" - if [ "${SERVICE}" = "gateway-service" ]; then echo "Testing Gateway Service..."; fi