Compare commits

...

14 Commits

Author SHA1 Message Date
wangwei10061 8f799ee3d7 Update '.trustie-pipeline.yml' 2022-08-09 14:13:42 +08:00
wangwei10061 416083a14f Update '.trustie-pipeline.yml' 2022-08-09 14:07:24 +08:00
xxq250 6032266320 Update '.trustie-pipeline.yml' 2022-08-02 18:28:16 +08:00
xxq250 a247dc99f5 Update 1.txt 2022-05-31 09:21:39 +08:00
xxq250 745eb3bacb Update '.trustie-pipeline.yml' 2022-05-30 09:56:56 +08:00
xxq250 d84f6081b5 Update '.trustie-pipeline.yml' 2022-05-27 17:11:05 +08:00
xiaoxiaoqiong f88741ed57 test 2022-05-29 09:44:39 +08:00
yystopf 13bae69aeb Update HelloWorld.java 2022-05-26 09:43:35 +08:00
xxq250 5daae28482 Add 1.txt 2022-05-26 09:42:58 +08:00
xxq250 f46610fb8e Update '.trustie-pipeline.yml' 2022-05-26 09:39:52 +08:00
m53297601 2c359e9fcd Update .gitignore 2021-09-27 19:20:33 +08:00
p47623895 d57aaf0de7 Update '.trustie-pipeline.yml' 2021-04-09 10:45:05 +08:00
p47623895 3bf40106ea Update '.trustie-pipeline.yml' 2021-04-09 10:43:38 +08:00
m53297601 07027667d2 Update '.trustie-pipeline.yml' 2021-04-02 10:50:18 +08:00
4 changed files with 26 additions and 33 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# ---> Java
# Compiled class file
*.class
#.fsl
# Log file
*.log

View File

@ -1,55 +1,44 @@
kind: pipeline
type: docker
name: 开发流水线
name: develop流水线
platform:
os: linux
arch: amd64
arch: arm64
steps:
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
# 本模板示例为上传软件包和部署脚本到home目录
# host、username、password可在参数管理中配置
- name: 上传文件
image: appleboy/drone-scp
settings:
host:
from_secret: deploy_ip
username:
from_secret: deploy_name
password:
from_secret: deploy_pwd
port: 3522
command_timeout: 2m
target: /opt/demo
source:
- target/*.war
- Dockerfile
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
# host、username、password可在参数管理中配置
- name: 远程主机部署
image: appleboy/drone-ssh
settings:
host:
from_secret: deploy_ip
from_secret: ip
username:
from_secret: deploy_name
from_secret: name
password:
from_secret: deploy_pwd
port: 3522
from_secret: pwd
port: 22
script:
- echo ====暂停容器开始11=======
- docker rm -f mo-test
- docker rmi mo-test:1.0
- cd /opt/demo
- echo ====开始部署=======
- docker build -t mo-test:1.0 .
- docker run -d -p 8080:8080 --name mo-test mo-test:1.0
- echo ====部署成功======
- chmod +x /home/deploy.sh
- ./home/deploy.sh
trigger:
branch:
- master
- develop
event:
- push

3
1.txt Normal file
View File

@ -0,0 +1,3 @@
ci test
error?
dev

View File

@ -14,7 +14,7 @@ public class HelloWorld extends HttpServlet {
@Override
public void init() throws ServletException {
message = "Hello world, this message is from servlet! Good Luck.";
message = "Hello world, this message is from servlet! Good Luck.a";
}
@Override