From 3bd85df0d2c28eb27361daac5abdc6cea3f3d47e Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Mon, 23 Sep 2024 15:39:52 +0800 Subject: [PATCH] 'test' --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.drone.yml b/.drone.yml index c7f0141..b9dedde 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,8 +11,14 @@ steps: - env - name: build-service image: maven:3-jdk-8 + volumes: + - name: test-dir + path: /root/aaa commands: # - echo "Building Service: ${SERVICE}" + - mkdir -p /root/aaa + - cd /root/aaa + - touch test.txt - | if [ ${SERVICE} = "gateway" ]; then echo "Building Gateway Service..." @@ -36,3 +42,7 @@ steps: echo "Testing All Services..." # 如果有其他服务,可以在这里继续添加 fi +volumes: + - name: test-dir + host: + path: /root/test-dir # 从宿主机中挂载的目录 \ No newline at end of file