ansible
into master
@@ -1,14 +1,9 @@ | |||||
kind: pipeline | kind: pipeline | ||||
type: docker | type: docker | ||||
name: masterpipe | |||||
name: 1 | |||||
platform: | platform: | ||||
os: linux | os: linux | ||||
arch: arm64 | arch: arm64 | ||||
volumes: | |||||
- name: cache | |||||
host: | |||||
path: /var/lib/cache | |||||
steps: | steps: | ||||
- name: maven | - name: maven | ||||
image: maven:3-jdk-10 | image: maven:3-jdk-10 | ||||
@@ -17,16 +12,8 @@ steps: | |||||
path: /root/.m2 | path: /root/.m2 | ||||
commands: | commands: | ||||
- mvn compile | - mvn compile | ||||
- name: test | |||||
image: maven:3-jdk-10 | |||||
volumes: | |||||
- name: cache | |||||
path: /root/.m2 | |||||
commands: | |||||
- mvn test | |||||
- name: 远程主机部署 | - name: 远程主机部署 | ||||
image: appleboy/drone-ssh | |||||
image: appleboy/drone-ssh:linux-arm64 | |||||
settings: | settings: | ||||
host: | host: | ||||
from_secret: ip | from_secret: ip | ||||
@@ -36,11 +23,9 @@ steps: | |||||
from_secret: pwd | from_secret: pwd | ||||
port: 22 | port: 22 | ||||
script: | script: | ||||
- chmod +x /home/deploy.sh | |||||
- ./home/deploy.sh | |||||
- echo hello | |||||
trigger: | trigger: | ||||
branch: | branch: | ||||
- master | |||||
- ansible | |||||
event: | event: | ||||
- push | - push | ||||
- pull_request |
@@ -2,7 +2,7 @@ | |||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<groupId>com.educoder</groupId> | <groupId>com.educoder</groupId> | ||||
<artifactId>webssh</artifactId> | |||||
<artifactId>jwebssh</artifactId> | |||||
<packaging>war</packaging> | <packaging>war</packaging> | ||||
<version>1.0-SNAPSHOT</version> | <version>1.0-SNAPSHOT</version> | ||||
<name>webssh Maven Webapp</name> | <name>webssh Maven Webapp</name> | ||||
@@ -1 +1 @@ | |||||
测试push | |||||
测试push2 |