From bf7523d761b7c5328c40527768e1c4839350158c Mon Sep 17 00:00:00 2001 From: bob Date: Fri, 17 Mar 2023 00:06:53 +0800 Subject: [PATCH] feat(cd) modify drone --- .drone.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6fb6223..cb0d1de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,8 +1,6 @@ kind: pipeline # 定义对象类型,还有secret和signature两种类型 type: docker # 定义流水线类型,还有kubernetes、exec、ssh等类型 name: jar-deploy # 定义流水线名称 -node: - name: centos-runner steps: # 定义流水线执行步骤,这些步骤将顺序执行 - name: build-package # 流水线名称 @@ -33,9 +31,6 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行 - cd /app/build # 进入宿主机构建目录 - chmod +x run.sh # 更改为可执行脚本 - ./run.sh # 运行脚本打包应用镜像并运行 - when: - event: - - promote volumes: # 定义流水线挂载目录,用于共享数据 - name: maven-build host: @@ -43,10 +38,7 @@ volumes: # 定义流水线挂载目录,用于共享数据 - name: maven-cache host: path: /app/maven/cache -## drone执行触发器 -#trigger: -# branch: -# - master -# event: -# - tag -# - published +# drone执行触发器 +trigger: + branch: + - master