@startuml
skinparam backgroundColor White
skinparam defaultFontColor Black
skinparam shadowing false
skinparam ArrowColor Black
skinparam packageBorderColor Black
skinparam packageBackgroundColor #F7F9FC
skinparam componentBorderColor Black
skinparam componentBackgroundColor #E8F1FF

title Docker workflow before cleanup

actor "Developer" as Dev #FFF6D5
component "GitHub Actions\ndocker.yml trigger" as Trigger #D9E8FF
component "Matrix target: backend\ncontext=.\nfile=Dockerfile.backend" as Backend #FFD9D9
component "Matrix target: dashboard\ncontext=./dashboard\nfile=Dockerfile" as Dashboard #FFD9D9
component "Repo reality\nonly Dockerfile for Rust server exists" as Reality #E5FFE5
component "Build risk\nmissing files + unrelated dashboard path" as Risk #FFE8B8

Dev --> Trigger : push main / tag
Trigger --> Backend : build and push
Trigger --> Dashboard : build and push
Backend --> Risk : references missing Dockerfile.backend
Dashboard --> Risk : references missing ./dashboard
Reality --> Risk : workflow mismatches repository
@enduml
