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