From 767ca5daddbeb695bb77b1123d24fa09b2cda240 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 15 May 2021 11:00:09 +0800 Subject: [PATCH] test promote Signed-off-by: a1012112796 <1012112796@qq.com> --- .drone.yml | 52 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index e5fce3d..26e17d8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,18 +1,34 @@ ---- -kind: pipeline -type: docker -name: build_linux_test - -trigger: - event: - - pull_request - - push - -steps: - - name: build_test - image: gcc - commands: - - echo "start test" - - gcc main.c -o test - - ./test - +--- +kind: pipeline +type: docker +name: build_linux_test + +trigger: + event: + - pull_request + - push + +steps: + - name: build_test + image: gcc + commands: + - echo "start test" + - gcc main.c -o test + - ./test + +--- +kind: pipeline +type: docker +name: promote_test + +trigger: + event: + - promote + target: + - production + +steps: + - name: test + image: gcc + commands: + - echo "start test"