Let A be a Gorenstein ring; then A is a Macaulay ring, and satisfies diA(A)=dim(A).
For every maximal ideal m of A, one has
dim(Am)diAm(Am)prof(Am)≤diAm(Am)=prof(Am)≤dim(Am)(No. 6,Prop. 8)(No. 6,Prop. 9)(§1,No. 4,Cor. 2 of Th. 2);
it follows that A is a Macaulay ring, and that diA(A)=dim(A) by passing to the least upper bound (No. 2, Prop. 3).
Thus the noetherian rings A such that diA(A) is finite are the finite-dimensional Gorenstein rings (Prop. 3 of No. 2), and the noetherian rings such that the A-module A is injective are the artinian Gorenstein rings.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.