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"