From ef40324c431a6cf58ff775128da48fc48c9852fe Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 14 Sep 2022 22:45:13 +0200 Subject: [PATCH] Display image digest for container packages (#21170) fixes #21160 --- options/locale/locale_en-US.ini | 1 + templates/package/content/container.tmpl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 6845680cc..b62395e54 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -3092,6 +3092,7 @@ container.details.platform = Platform container.details.repository_site = Repository Site container.details.documentation_site = Documentation Site container.pull = Pull the image from the command line: +container.digest = Digest: container.documentation = For more information on the Container registry, see the documentation. container.multi_arch = OS / Arch container.layers = Image Layers diff --git a/templates/package/content/container.tmpl b/templates/package/content/container.tmpl index 44a64d13e..939dfe402 100644 --- a/templates/package/content/container.tmpl +++ b/templates/package/content/container.tmpl @@ -14,6 +14,10 @@
docker pull {{.RegistryHost}}/{{.PackageDescriptor.Owner.LowerName}}/{{.PackageDescriptor.Package.LowerName}}{{$separator}}{{.PackageDescriptor.Version.LowerVersion}}
{{end}} +
+ +
{{range .PackageDescriptor.Files}}{{if eq .File.LowerName "manifest.json"}}{{.Properties.GetByName "container.digest"}}{{end}}{{end}}
+