ci: add some ci stages (promote)
This commit is contained in:
parent
47712d829c
commit
9ea46e0398
20
.drone.yml
20
.drone.yml
@ -3,7 +3,25 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:latest
|
image: rust:1.77.2-slim
|
||||||
commands:
|
commands:
|
||||||
- cargo build --verbose --all
|
- cargo build --verbose --all
|
||||||
- cargo test --verbose --all
|
- cargo test --verbose --all
|
||||||
|
- name: deploy
|
||||||
|
image: rust:1.77.2-slim
|
||||||
|
commands:
|
||||||
|
- echo "deploying staging..."
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include: [ promote ]
|
||||||
|
target:
|
||||||
|
include: [ staging ]
|
||||||
|
- name: deploy_prod
|
||||||
|
image: rust:1.77.2-slim
|
||||||
|
commands:
|
||||||
|
- echo "deploying production..."
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include: [ promote ]
|
||||||
|
target:
|
||||||
|
include: [ prod ]
|
||||||
|
Loading…
Reference in New Issue
Block a user