ci: prod -> production, add optional fmt test
This commit is contained in:
parent
9ea46e0398
commit
2717aeadde
14
.drone.yml
14
.drone.yml
@ -7,6 +7,11 @@ steps:
|
||||
commands:
|
||||
- cargo build --verbose --all
|
||||
- cargo test --verbose --all
|
||||
- name: test_fmt
|
||||
image: rust:1.77.2-slim
|
||||
commands:
|
||||
- cargo fmt -- --check
|
||||
failure: ignore
|
||||
- name: deploy
|
||||
image: rust:1.77.2-slim
|
||||
commands:
|
||||
@ -16,6 +21,10 @@ steps:
|
||||
include: [ promote ]
|
||||
target:
|
||||
include: [ staging ]
|
||||
depends_on:
|
||||
- test
|
||||
- test_fmt
|
||||
|
||||
- name: deploy_prod
|
||||
image: rust:1.77.2-slim
|
||||
commands:
|
||||
@ -24,4 +33,7 @@ steps:
|
||||
event:
|
||||
include: [ promote ]
|
||||
target:
|
||||
include: [ prod ]
|
||||
include: [ production ]
|
||||
depends_on:
|
||||
- test
|
||||
- test_fmt
|
||||
|
Loading…
Reference in New Issue
Block a user