Compare commits

...

14 Commits

Author SHA1 Message Date
wangwei10061 8f799ee3d7 Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed Details
2022-08-09 14:13:42 +08:00
wangwei10061 416083a14f Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed Details
2022-08-09 14:07:24 +08:00
xxq250 6032266320 Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed Details
2022-08-02 18:28:16 +08:00
xxq250 a247dc99f5 Update 1.txt
continuous-integration/drone/push Build is failing Details
2022-05-31 09:21:39 +08:00
xxq250 745eb3bacb Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build is failing Details
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 # ---> Java
# Compiled class file # Compiled class file
*.class *.class
#.fsl
# Log file # Log file
*.log *.log

View File

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