{{- $displayReleases := ne (getenv "HIDE_RELEASES") "true" }} {{- $downloadUrl := "https://github.com/spiffe/spire/releases/download" }} {{- if $displayReleases }} {{- $releases := sort site.Data.releases.all "created_at" "desc" }} {{- $latestRelease := site.Data.releases.latest }} {{- $latest := $latestRelease.tag_name }} {{- range $releases -}} {{- $hasExtras := (index .assets 2).name }} {{- $clipboardButtons := .Site.Params.downloads.buttons.clipboard }} {{- $downloadButtons := .Site.Params.downloads.buttons.download }} {{- $version := .tag_name }} {{- $versionUrl := .html_url }} {{- $isLatest := eq $version $latest }} {{- $tar := (index .assets 0).name }} {{- $zip := (index .assets 1).name }} {{- $extrasChecksumUrl := "" -}} {{- $extrasTarUrl := "" -}} {{- if $hasExtras }} {{- $extras := (index .assets 2).name }} {{- $extrasChecksum := (index .assets 3).name }} {{- $extrasTarUrl = printf "%s/%s/%s" $downloadUrl $version $extras }} {{- $extrasChecksumUrl = printf "%s/%s/%s" $downloadUrl $version $extrasChecksum }} {{- end }} {{- $binaryTarUrl := printf "%s/%s/%s" $downloadUrl $version $tar }} {{- $checksumsUrl := printf "%s/%s/%s" $downloadUrl $version $zip }} {{- $sourceZipUrl := printf "https://github.com/spiffe/spire/archive/%s.zip" $version }} {{- $sourceTarUrl := printf "https://github.com/spiffe/spire/archive/%s.tar.gz" $version }} {{- end }}
Version Click to copy link to clipboard Click to trigger download
{{ $version }} {{- if $isLatest }} LATEST {{- end }}
{{ partial "downloads/download-button.html" (dict "url" $binaryTarUrl "text" "Binaries (.tar.gz)" "isDownloadButton" false "color" "dark") }} {{ partial "downloads/download-button.html" (dict "url" $checksumsUrl "text" "Checksum (.txt)" "isDownloadButton" false "color" "dark") }} {{- if $hasExtras -}} {{ partial "downloads/download-button.html" (dict "url" $extrasTarUrl "text" "Extras (.tar.gz)" "isDownloadButton" false "color" "dark") }} {{ partial "downloads/download-button.html" (dict "url" $extrasChecksumUrl "text" "Extras Checksum (.txt)" "isDownloadButton" false "color" "dark") }} {{- end }} {{ partial "downloads/download-button.html" (dict "url" $sourceZipUrl "text" "Source (.zip)" "isDownloadButton" false "color" "light") }} {{ partial "downloads/download-button.html" (dict "url" $sourceTarUrl "text" "Source (.tar.gz)" "isDownloadButton" false "color" "light") }}
{{ partial "downloads/download-button.html" (dict "url" $binaryTarUrl "text" "Binaries (.tar.gz)" "isDownloadButton" true "color" "dark") }} {{ partial "downloads/download-button.html" (dict "url" $checksumsUrl "text" "Checksum (.txt)" "isDownloadButton" true "color" "dark") }} {{- if $hasExtras -}} {{ partial "downloads/download-button.html" (dict "url" $extrasTarUrl "text" "Extras (.tar.gz)" "isDownloadButton" true "color" "dark") }} {{ partial "downloads/download-button.html" (dict "url" $extrasChecksumUrl "text" "Extras Checksum (.txt)" "isDownloadButton" true "color" "dark") }} {{- end }} {{ partial "downloads/download-button.html" (dict "url" $sourceZipUrl "text" "Source (.zip)" "isDownloadButton" true "color" "light") }} {{ partial "downloads/download-button.html" (dict "url" $sourceTarUrl "text" "Source (.tar.gz)" "isDownloadButton" true "color" "light") }}
{{- else }}
The releases table is not currently displayed because you're running the site in standard development mode. To display the releases table while in development mode, run make serve-with-releases rather than the standard make serve.
{{- end }}