Browse Source

update pipeline for ansible branch

ansible
wangwei10061 3 months ago
parent
commit
06fca9d93d
1 changed files with 12 additions and 8 deletions
  1. +12
    -8
      .drone.yml

+ 12
- 8
.drone.yml View File

@@ -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

Loading…
Cancel
Save