init
This commit is contained in:
parent
e33d03ffed
commit
3282fedf93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user