term-render/.drone.yml
Yandrik 2717aeadde
All checks were successful
continuous-integration/drone/promote/staging Build is passing
continuous-integration/drone/push Build is passing
ci: prod -> production, add optional fmt test
2024-04-24 11:20:48 +02:00

40 lines
685 B
YAML

kind: pipeline
name: default
steps:
- name: test
image: rust:1.77.2-slim
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:
- echo "deploying staging..."
when:
event:
include: [ promote ]
target:
include: [ staging ]
depends_on:
- test
- test_fmt
- name: deploy_prod
image: rust:1.77.2-slim
commands:
- echo "deploying production..."
when:
event:
include: [ promote ]
target:
include: [ production ]
depends_on:
- test
- test_fmt