From 06fca9d93dac5f77d5d803c5a7fe997d76f9dfc1 Mon Sep 17 00:00:00 2001 From: wangwei10061 <153692771@qq.com> Date: Wed, 29 May 2024 14:41:57 +0800 Subject: [PATCH] update pipeline for ansible branch --- .drone.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index b35f536..c756cf2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,16 +12,20 @@ steps: path: /root/.m2 commands: - mvn compile - -- name: check ansible syntax - image: plugins/ansible:3 +- name: 远程主机部署 + image: appleboy/drone-ssh:linux-arm64 settings: - playbook: ansible/playbook.yml - galaxy: ansible/requirements.yml - inventory: ansible/inventory - syntax_check: true + host: + from_secret: ip + username: + from_secret: name + password: + from_secret: pwd + port: 22 + script: + - echo hello trigger: branch: - ansible event: - - cron + - push