fix BUILD_VARIANT for dockerfile image build
Use BUILD_VARIANT release instead of build to publish the correct image. When BUILD_VARIANT: build is used the golang build image is published instead of the actual image with the golang binary.
Bug: T357612