This commit is contained in:
parent
3accb6e731
commit
ff8f5c4879
39
.drone.yml
39
.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
|
||||
event:
|
||||
- push
|
||||
status:
|
||||
- success
|
||||
|
||||
- name: deploy-production
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "Deploying to production..."
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
status:
|
||||
- success
|
||||
depends_on:
|
||||
- approval
|
||||
|
Loading…
Reference in New Issue
Block a user