Hi,

Is it possible to output in anyway the image_name that was used at runtime 
from the source_image_family ?

What I want to achieve: 

I'm using packer with GCP to create compute instance images that have 
as source_image_family a golden image.

I would like to create a label on the new created image where to mention 
the source_image name that was used in my build. ( source_image_family will 
use the latest image )

I was wondering if I could get this information ( source_image ) that 
packer used during the build ( will add the  tag the new image in post 
build with gcloud )

PS: I know that I can pass the source_image as packer variable by querying 
the latest image using gcloud , but I would prefer not to do that, if 
Packer can.

Thank you. 

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/d3707cf1-ea72-4d14-b410-74dea0ce7bfen%40googlegroups.com.

Reply via email to