From 7921ecdb0fea575177bd66027c4996e3b16425a4 Mon Sep 17 00:00:00 2001 From: wangwei2 <153692772@qq.com> Date: Tue, 14 Mar 2023 17:28:03 +0800 Subject: [PATCH] update pipeline for master branch --- .drone.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7a00373..ba12f0b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,4 @@ + kind: pipeline type: docker name: 1 @@ -9,14 +10,7 @@ volumes: - name: cache host: path: /tmp/cache - steps: -- name: detection - image: python:3 - failure: ignore - commands: - - echo **detection test** - - curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei2","repoOwner":"wangwei2","repository":"report-python3","branchName":"master"}' - name: build image: python:3 @@ -34,6 +28,13 @@ steps: volumes: - name: cache path: /tmp/cache + +- name: detection + image: python + failure: ignore + commands: + - echo **detection test** + - curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei","repoOwner":"wangwei","repository":"python-demo", branchName":"master"}' trigger: branch: