@@ -12,6 +12,19 @@ steps: | |||||
path: /root/.m2 | path: /root/.m2 | ||||
commands: | commands: | ||||
- mvn compile | - mvn compile | ||||
- name: 远程主机部署 | |||||
image: appleboy/drone-ssh:linux-arm64 | |||||
settings: | |||||
host: | |||||
from_secret: ip | |||||
username: | |||||
from_secret: name | |||||
password: | |||||
from_secret: pwd | |||||
port: 22 | |||||
script: | |||||
- chmod +x /home/deploy.sh | |||||
- bash /home/deploy.sh | |||||
trigger: | trigger: | ||||
branch: | branch: | ||||
- interface | - interface | ||||