We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61d914 commit aec29a1Copy full SHA for aec29a1
builder/docker/artifact_import.go
@@ -107,7 +107,13 @@ func (a *ImportArtifact) stateHCPPackerRegistryMetadata() interface{} {
107
// sha256 id. We store this for posterity, but the image id needs to be
108
// the sha256.
109
img.Labels["PackerArtifactID"] = a.Id()
110
- // Overwrite ID with
+ // Digest exists in state if we ran the packer push postprocessor.
111
+ digest, ok := data["Digest"].(string)
112
+ if ok {
113
+ img.Labels["ImageDigest"] = digest
114
+ }
115
+
116
+ // Overwrite ID with image sha
117
img.ImageID = data["ImageSha256"].(string)
118
119
return img
0 commit comments