A multi-step ACR Task must build an image, run tests against it, and push only if tests pass. Which construct expresses this?
- A A quick task with az acr build
- B A YAML task file with build, cmd, and push steps plus a 'when' condition (correct answer)
- C Three separate scheduled tasks
- D A Dockerfile with multi-stage builds only
Shortcut: yaml support sequential build/cmd/push steps, dependencies via 'when', and shared volumes, enabling test gating inside the registry build itself.
Multi-step tasks defined in acr-task.yaml support sequential build/cmd/push steps, dependencies via 'when', and shared volumes, enabling test gating inside the registry build itself.