Pushing multiple images in packer docker builder

I am trying to create multiple docker images using parallel build concept. Parallel Builds | Packer - HashiCorp Learn
I am able to create docker images, but getting issues in post processors for docker-tag and docker-push.
packer is not able to push both the images.