From 70da05aba6ce79790f1769f0334db429569577df Mon Sep 17 00:00:00 2001 From: aipper Date: Tue, 27 May 2025 15:17:07 +0800 Subject: [PATCH] test --- .drone.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 18e8116..5980e67 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,12 +53,10 @@ steps: - name: deploy-to-server image: appleboy/drone-ssh # 使用 SSH 插件 settings: - host: - from_secret: 10.0.0.210 - username: - from_secret: root - key: - from_secret: ssh_private_key # SSH 私钥内容 + host: 10.0.0.210 + username: root + password: + from_secret: ssh_password port: 22 # SSH 端口,默认为 22 # passhprase: from_secret: ssh_passphrase # 如果你的 SSH key 有密码 script: @@ -78,7 +76,7 @@ steps: - push # (可选) 定义卷用于缓存,例如 Maven 依赖 -# volumes: -# - name: maven-cache -# host: -# path: /tmp/cache/maven # 将 Runner 主机上的目录挂载到构建步骤中 \ No newline at end of file +volumes: + - name: maven-cache + host: + path: /tmp/cache/maven # 将 Runner 主机上的目录挂载到构建步骤中 \ No newline at end of file