Update '.trustie-pipeline.yml'

This commit is contained in:
cxt 2021-01-04 15:18:27 +08:00
parent f75b86833a
commit 31be3d5c5d
1 changed files with 8 additions and 24 deletions

View File

@ -1,24 +1,8 @@
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
kind: pipeline
name: 测试
steps:
- name: 测试
image: arm64v8/maven
commands:
- echo 'hello world' > /home/hello.txt