Skip to content

Commit

Permalink
Add "ArchFile" for differing "File:" values
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Oct 25, 2018
1 parent 5417a2f commit 1a40a54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .template-helpers/generate-dockerfile-links-partial.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
- {{- "\t" -}}
{{- if $isGitHub -}} [ {{- end -}}
{{- $dir := .ArchDirectory $arch -}}
{{- $dockerfilePath := eq $dir "." | ternary "Dockerfile" (join "/" $dir "Dockerfile") -}}
{{- $dockerfile := .ArchFile $arch -}}
{{- $dockerfilePath := eq $dir "." | ternary $dockerfile (join "/" $dir $dockerfile) -}}
` {{- $e.Tags | join "`, `" -}} ` (* {{- $dockerfilePath -}} *)
{{- $gitCommit := $e.ArchGitCommit $arch -}}
{{- if $isGitHub -}} ]( {{- $repoUrlBase -}} /blob/ {{- $gitCommit -}} / {{- $dockerfilePath -}} ) {{- end -}}
Expand Down Expand Up @@ -60,7 +61,8 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
{{- "\t-\t" -}}
{{- if $isGitHub -}} [ {{- end -}}
{{- $dir := .ArchDirectory $arch -}}
{{- $dockerfilePath := ternary "Dockerfile" (join "/" $dir "Dockerfile") (eq $dir ".") -}}
{{- $dockerfile := .ArchFile $arch -}}
{{- $dockerfilePath := eq $dir "." | ternary $dockerfile (join "/" $dir $dockerfile) -}}
` {{- $e.Tags | first -}} ` (* {{- $dockerfilePath -}} *)
{{- $gitCommit := $e.ArchGitCommit $arch -}}
{{- if $isGitHub -}} ]( {{- $repoUrlBase -}} /blob/ {{- $gitCommit -}} / {{- $dockerfilePath -}} ) {{- end -}}
Expand Down

0 comments on commit 1a40a54

Please sign in to comment.