diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..1e04415
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,24 @@
+kind: pipeline
+name: maven项目-镜像仓库
+
+steps:
+- name: Maven编译
+ image: maven:3-jdk-10
+ commands:
+ - mvn install
+
+- name: 执行-部署脚本
+ image: docker:dind
+ volumes:
+ - name: dockersock
+ path: /var/run/docker.sock
+ commands:
+ - docker ps
+ - chmod +x ./deploy.sh
+ - ./deploy.sh
+
+
+volumes:
+- name: dockersock
+ host:
+ path: /var/run/docker.sock
\ No newline at end of file
diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml
index be1761f..1e04415 100644
--- a/.trustie-pipeline.yml
+++ b/.trustie-pipeline.yml
@@ -1,13 +1,24 @@
kind: pipeline
- name: default
+name: maven项目-镜像仓库
- platform:
- os: linux
- arch: arm64
+steps:
+- name: Maven编译
+ image: maven:3-jdk-10
+ commands:
+ - mvn install
- steps:
- - name: test
- image: maven:3-jdk-10
- commands:
- - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- - mvn test -B
\ No newline at end of file
+- name: 执行-部署脚本
+ image: docker:dind
+ volumes:
+ - name: dockersock
+ path: /var/run/docker.sock
+ commands:
+ - docker ps
+ - chmod +x ./deploy.sh
+ - ./deploy.sh
+
+
+volumes:
+- name: dockersock
+ host:
+ path: /var/run/docker.sock
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..2ce5497
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+
+#添加docker镜像
+FROM tomcat
+
+#添加作者信息
+MAINTAINER moshenglv@163.com
+
+#复制应用程序
+COPY target/demo-1.war /usr/local/tomcat/webapps/demo.war
+
diff --git a/README.md b/README.md
index 3dfc05c..16273cf 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,3 @@
-#### 从命令行创建一个新的仓库
-
-```bash
-touch README.md
-git init
-git add README.md
-git commit -m "first commit"
-git remote add origin http://testgitea2.trustie.net/cxt/devops-test.git
-git push -u origin master
-
-```
-
-#### 从命令行推送已经创建的仓库
-
-```bash
-git remote add origin http://testgitea2.trustie.net/cxt/devops-test.git
-git push -u origin master
-
-```
+# MyTest
+test
\ No newline at end of file
diff --git a/deploy.sh b/deploy.sh
new file mode 100644
index 0000000..b3aa4d8
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,6 @@
+echo ====暂停容器开始=======
+docker rm -f devops-test
+echo ====开始部署=======
+docker build -t devops-test:1.0 .
+docker run -d -p 8080:8080 --name devops-test devops-test:1.0
+echo ====部署成功======
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..abb6bac
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,37 @@
+
+