This commit is contained in:
parent
3accb6e731
commit
ff8f5c4879
39
.drone.yml
39
.drone.yml
@ -1,12 +1,41 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: production
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: deploy
|
- name: test
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
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:
|
when:
|
||||||
branch:
|
event:
|
||||||
- main
|
- 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