it seems that you have a billious vomiting
. It may be a sign of indigestion
but if persists, needs further investigations. I think you will get relieved by proton pump
inhibitor and anti-emetic combination. if vopmiting continues, may need fluid replacement.
if vomiting persists further you may need ultrasonography
best wishes for your health