2024-04-23 18:33:09 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2024-04-24 09:14:56 +00:00
|
|
|
image: rust:1.77.2-slim
|
2024-04-23 18:33:09 +00:00
|
|
|
commands:
|
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2024-04-24 09:20:48 +00:00
|
|
|
- name: test_fmt
|
|
|
|
image: rust:1.77.2-slim
|
|
|
|
commands:
|
|
|
|
- cargo fmt -- --check
|
|
|
|
failure: ignore
|
2024-04-24 09:14:56 +00:00
|
|
|
- name: deploy
|
|
|
|
image: rust:1.77.2-slim
|
|
|
|
commands:
|
|
|
|
- echo "deploying staging..."
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
include: [ promote ]
|
|
|
|
target:
|
|
|
|
include: [ staging ]
|
2024-04-24 09:20:48 +00:00
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
- test_fmt
|
|
|
|
|
2024-04-24 09:14:56 +00:00
|
|
|
- name: deploy_prod
|
|
|
|
image: rust:1.77.2-slim
|
|
|
|
commands:
|
|
|
|
- echo "deploying production..."
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
include: [ promote ]
|
|
|
|
target:
|
2024-04-24 09:20:48 +00:00
|
|
|
include: [ production ]
|
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
- test_fmt
|