#4 ansible

Open
wangwei10061 wants to merge 5 commits from ansible into master
  1. +4
    -19
      .drone.yml
  2. +1
    -1
      pom.xml
  3. +1
    -1
      test.txt

+ 4
- 19
.drone.yml View File

@@ -1,14 +1,9 @@
kind: pipeline
type: docker
name: masterpipe
name: 1
platform:
os: linux
arch: arm64

volumes:
- name: cache
host:
path: /var/lib/cache
steps:
- name: maven
image: maven:3-jdk-10
@@ -17,16 +12,8 @@ steps:
path: /root/.m2
commands:
- mvn compile
- name: test
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
commands:
- mvn test

- name: 远程主机部署
image: appleboy/drone-ssh
image: appleboy/drone-ssh:linux-arm64
settings:
host:
from_secret: ip
@@ -36,11 +23,9 @@ steps:
from_secret: pwd
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
- echo hello
trigger:
branch:
- master
- ansible
event:
- push
- pull_request

+ 1
- 1
pom.xml View File

@@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.educoder</groupId>
<artifactId>webssh</artifactId>
<artifactId>jwebssh</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>webssh Maven Webapp</name>


+ 1
- 1
test.txt View File

@@ -1 +1 @@
测试push
测试push2

Loading…
Cancel
Save