It was the first time in two years Corbin, who went 6 2/3 frames and allowed three runs, eclipsed 80 pitches.
"I felt strong in the seventh," Corbin said. "That was probably the biggest thing to take away from today."
Goldschmidt hit his second Cactus League home run in the first off Brewers starter Matt Garza as Arizona built a 4-0 lead in the first four innings for Corbin, who was charged with three earned runs on six hits in 6 2/3 innings.
Corbin didn't allow a hit until Brewers first baseman Jonathan Lucroy's solo home run in the bottom of the fourth.