kind: pipeline name: default steps: - name: test image: rust:1.77.2-slim commands: - cargo build --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 ]