Minor template adjustment for readability

This commit is contained in:
Tianon Gravi 2018-07-25 14:47:33 -07:00
parent f4593b3d00
commit b60d7b0e89
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
- {{- "\t" -}} - {{- "\t" -}}
{{- if $isGitHub -}} [ {{- end -}} {{- if $isGitHub -}} [ {{- end -}}
{{- $dir := .ArchDirectory $arch -}} {{- $dir := .ArchDirectory $arch -}}
{{- $dockerfilePath := ternary "Dockerfile" (join "/" $dir "Dockerfile") (eq $dir ".") -}} {{- $dockerfilePath := eq $dir "." | ternary "Dockerfile" (join "/" $dir "Dockerfile") -}}
` {{- $e.Tags | join "`, `" -}} ` (* {{- $dockerfilePath -}} *) ` {{- $e.Tags | join "`, `" -}} ` (* {{- $dockerfilePath -}} *)
{{- $gitCommit := $e.ArchGitCommit $arch -}} {{- $gitCommit := $e.ArchGitCommit $arch -}}
{{- if $isGitHub -}} ]( {{- $repoUrlBase -}} /blob/ {{- $gitCommit -}} / {{- $dockerfilePath -}} ) {{- end -}} {{- if $isGitHub -}} ]( {{- $repoUrlBase -}} /blob/ {{- $gitCommit -}} / {{- $dockerfilePath -}} ) {{- end -}}