This commit is contained in:
XinWei 2024-07-27 15:25:54 +08:00
parent e33d03ffed
commit 3282fedf93

View File

@ -26,16 +26,14 @@ steps:
- name: build docker
image: plugins/docker
volumes:
# 将容器内目录挂载到宿主机仓库需要开启Trusted设置
volumes: # 将容器内目录挂载到宿主机仓库需要开启Trusted设置
- name: maven-build
path: /thirdPlatform/build # 将应用打包好的Jar和执行脚本挂载出来
- name: docker
path: /var/run/docker.sock # 挂载宿主机的docker
settings:
dockerfile: /thirdPlatform/build/Dockerfile
commands:
# 定义在Docker容器中执行的shell命令
commands: # 定义在Docker容器中执行的shell命令
- cd /thirdPlatform/build
- chmod +x docker.sh
- sh docker.sh