I can't provide medical advice. If your dog is bringing up yellow bile, take them to a veterinarian immediately.
Yellow bile is a symptom of various conditions, some urgent. Self-diagnosis could worsen the problem. Possible causes include gastrointestinal upset, inflammatory bowel disease, pancreatitis, liver disease, or parasites.
A vet can perform a physical exam and run tests to determine the cause and prescribe proper treatment. Your dog's health is a top priority.