Labels or Annotations?
You want to attach the Git commit and the build URL to a Deployment so people and tools can read them. Nothing selects objects by these values. Where should they go?
Choose one answer
In labels, so kubectl get -l can filter by them
kubectl get -l
In the Pod's environment variables
In annotations, which hold non-identifying metadata
In the object's name, separated by dots