Author | SHA1 | Message | Date |
---|---|---|---|
|
20bf2dd84f | update pipeline for docker branch | 1 year ago |
|
f0f74d68d2 | update pipeline for docker branch | 1 year ago |
|
ce70d811d9 | 更新 'pom.xml' | 1 year ago |
|
ce07ecb6bf | 更新 '.drone.yml' | 2 years ago |
|
70bf718330 | update pipeline for docker branch | 2 years ago |
|
e8c34c3493 | update pipeline for docker branch | 2 years ago |
@@ -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,10 @@ 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 | |||||
- docker | |||||
event: | event: | ||||
- push | - push | ||||
- pull_request | - pull_request |
@@ -33,6 +33,13 @@ | |||||
<artifactId>freemarker</artifactId> | <artifactId>freemarker</artifactId> | ||||
<version>${freemarker.version}</version> | <version>${freemarker.version}</version> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>org.apache.logging.log4j</groupId> | |||||
<artifactId>log4j-core</artifactId> | |||||
<version>2.13.0</version> | |||||
</dependency> | |||||
<dependency> | <dependency> | ||||
<groupId>com.jcraft</groupId> | <groupId>com.jcraft</groupId> | ||||