Compare commits

...

6 Commits

2 changed files with 11 additions and 18 deletions
Split View
  1. +4
    -18
      .drone.yml
  2. +7
    -0
      pom.xml

+ 4
- 18
.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,10 @@ steps:
from_secret: pwd
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
- echo hello
trigger:
branch:
- master
- docker
event:
- push
- pull_request

+ 7
- 0
pom.xml View File

@@ -33,6 +33,13 @@
<artifactId>freemarker</artifactId>
<version>${freemarker.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.0</version>
</dependency>


<dependency>
<groupId>com.jcraft</groupId>


Loading…
Cancel
Save