{{- $spireReleasesUrl := "https://api.github.com/repos/spiffe/spire/releases" }} {{- $downloadUrl := "https://github.com/spiffe/spire/releases/download" }} {{- $releases := getJSON $spireReleasesUrl }} {{- $latest := (index $releases 0).tag_name }} {{- $clipboardButtons := .Site.Params.downloads.buttons.clipboard }} {{- $downloadButtons := .Site.Params.downloads.buttons.download }} {{- range $releases }} {{- $version := .tag_name }} {{- $versionUrl := .html_url }} {{- $isLatest := eq $version $latest }} {{- $tar := (index .assets 0).name }} {{- $zip := (index .assets 1).name }} {{- $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" "Checksums (.txt)" "isDownloadButton" false "color" "dark") }} {{ 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" "Checksums (.txt)" "isDownloadButton" true "color" "dark") }} {{ 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") }}