From ff8f5c4879497d1f97e826c6ab627addae52bcd7 Mon Sep 17 00:00:00 2001 From: first_admin Date: Thu, 22 Aug 2024 05:09:36 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3ad670f..76813fd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,12 +1,41 @@ kind: pipeline type: docker -name: production +name: default steps: - - name: deploy + - name: test image: alpine commands: - - echo "Deploying to production" + - echo "Testing..." + + - name: build + image: alpine + commands: + - echo "Building..." + + - name: deploy-staging + image: alpine + commands: + - echo "Deploying to stage..." + + - name: approval + image: alpine + commands: + - echo "Awaiting manual approval for production deployment." when: - branch: - - main \ No newline at end of file + event: + - push + status: + - success + + - name: deploy-production + image: alpine + commands: + - echo "Deploying to production..." + when: + event: + - push + status: + - success + depends_on: + - approval