From a5c86008a0bad369f1b5e5145a57ca87a57cbd5b Mon Sep 17 00:00:00 2001 From: fandongqiang <1075044867@qq.com> Date: Sat, 7 Oct 2023 13:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95CI=EF=BC=8C=E5=8F=91=E5=B8=83?= =?UTF-8?q?springboot=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index cb4d061..727d257 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,16 +16,16 @@ steps: # 定义管道的执行步骤 - cp Dockerfile /app/build/ - cp run.sh /app/build/ - name: build-docker - image: plugins/docker - volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置 - - name: maven-build - path: /app/build # 将应用打包好的Jar和执行脚本挂载出来 - - name: docker - path: /var/run/docker.sock # 挂载宿主机的docker - settings: - dockerfile: /app/build/Dockerfile - commands: # 定义在Docker容器中执行的shell命令 - - cd /app/build - - chmod +x run.sh - - sh run.sh - - docker ps \ No newline at end of file + image: plugins/docker + volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置 + - name: maven-build + path: /app/build # 将应用打包好的Jar和执行脚本挂载出来 + - name: docker + path: /var/run/docker.sock # 挂载宿主机的docker + settings: + dockerfile: /app/build/Dockerfile + commands: # 定义在Docker容器中执行的shell命令 + - cd /app/build + - chmod +x run.sh + - sh run.sh + - docker ps \ No newline at end of file