oto/apps/runner/assets/yaml/sample/02_pipeline_if.yaml
toki 86afabb3eb refactor(runner): 런타임 패키지를 앱 하위로 이동한다
독립 control plane 구성을 위해 기존 Dart CLI/runtime을 runner 앱 경계로 옮기고, 후속 client/core/root 작업을 같은 마일스톤 task group에 연결한다.
2026-06-05 06:34:45 +09:00

55 lines
1.1 KiB
YAML

---
# [샘플] 조건 분기 (if)
# condition-string / condition-int / condition-float / condition-bool /
# condition-date / condition-version 으로 타입 지정
# on-true / on-false 로 분기
property:
workspace: /path/to/project
env: prod
retryCount: 0
version: 2.1.0
pipeline:
id: main
workflow:
# string 비교
- if:
condition-string: <!property.env> == prod
on-true:
- exe: deploy-prod
on-false:
- exe: deploy-dev
# int 비교
- if:
condition-int: <!property.retryCount> < 3
on-true:
- exe: retry-build
# version 비교 (자릿수 동일해야 함: 0.0.0 or 0.0.0.0)
- if:
condition-version: <!property.version> >= 2.0.0
on-true:
- exe: new-flow
commands:
- command: Print
id: deploy-prod
param:
message: "운영 배포 실행"
- command: Print
id: deploy-dev
param:
message: "개발 배포 실행"
- command: Print
id: retry-build
param:
message: "재시도 실행"
- command: Print
id: new-flow
param:
message: "신규 플로우 실행"