From 115edac82b4f6bd047e31ede9cbfb5e09528ff18 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Fri, 23 Aug 2024 15:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1dbe32b0d..f934cba60 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,13 +1,12 @@ kind: pipeline type: docker name: ludu-system-drone -# 定义全局环境变量 -environment: - serverName: - from_secret: serverName steps: - name: package image: maven:3-jdk-8 + environment: + serverName: + from_secret: serverName volumes: - name: maven-cache path: /root/.m2 @@ -79,6 +78,9 @@ steps: - name: copy-to-object image: appleboy/drone-ssh + environment: + serverName: + from_secret: serverName settings: host: 101.43.112.107 username: root @@ -137,6 +139,9 @@ steps: - name: build-other-service image: appleboy/drone-ssh + environment: + serverName: + from_secret: serverName settings: host: 120.46.37.243 username: root @@ -154,6 +159,9 @@ steps: - name: object-build image: appleboy/drone-ssh + environment: + serverName: + from_secret: serverName settings: host: 121.36.203.133 username: root