Use releases for releases

This commit is contained in:
Seth Vargo 2015-10-25 23:58:36 -04:00
parent 8b70867fdd
commit 456f1a7676
4 changed files with 50 additions and 53 deletions

View File

@ -1,8 +1,8 @@
GIT GIT
remote: https://github.com/hashicorp/middleman-hashicorp remote: https://github.com/hashicorp/middleman-hashicorp
revision: b152b6436348e8e1f9990436228b25b4c5c6fcb8 revision: f21146d03182b7236b85ee8bc430fd613125d5bb
specs: specs:
middleman-hashicorp (0.1.0) middleman-hashicorp (0.2.0)
bootstrap-sass (~> 3.3) bootstrap-sass (~> 3.3)
builder (~> 3.2) builder (~> 3.2)
less (~> 2.6) less (~> 2.6)
@ -79,7 +79,7 @@ GEM
kramdown (1.9.0) kramdown (1.9.0)
less (2.6.0) less (2.6.0)
commonjs (~> 0.2.7) commonjs (~> 0.2.7)
libv8 (3.16.14.11) libv8 (3.16.14.13)
listen (3.0.3) listen (3.0.3)
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9) rb-inotify (>= 0.9)

View File

@ -1,14 +1,7 @@
#-------------------------------------------------------------------------
# Configure Middleman
#-------------------------------------------------------------------------
set :base_url, "https://www.terraform.io/" set :base_url, "https://www.terraform.io/"
activate :hashicorp do |h| activate :hashicorp do |h|
h.version = ENV["TERRAFORM_VERSION"] h.name = "terraform"
h.bintray_enabled = ENV["BINTRAY_ENABLED"] h.version = "0.6.6"
h.bintray_repo = "mitchellh/terraform" h.github_slug = "hashicorp/terraform"
h.bintray_user = "mitchellh"
h.bintray_key = ENV["BINTRAY_API_KEY"]
h.github_slug = "hashicorp/terraform"
end end

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

View File

@ -9,46 +9,50 @@ description: |-
<h1>Download Terraform</h1> <h1>Download Terraform</h1>
<section class="downloads"> <section class="downloads">
<div class="description row"> <div class="description row">
<div class="col-md-12"> <div class="col-md-12">
<p> <p>
Below are all available downloads for the latest version of Terraform Below are the available downloads for the latest version of Terraform
(<%= latest_version %>). Please download the proper package for your (<%= latest_version %>). Please download the proper package for your
operating system and architecture. You can find SHA256 checksums operating system and architecture.
for packages <a href="https://dl.bintray.com/mitchellh/terraform/terraform_<%= latest_version %>_SHA256SUMS?direct">here</a>. </p>
</p> <p>
You can find the
<a href="https://releases.hashicorp.com/terraform/<%= latest_version %>/terraform_<%= latest_version %>_SHA256SUMS">
SHA256 checksums for Terraform <%= latest_version %>
</a>
online and you can
<a href="https://releases.hashicorp.com/terraform/<%= latest_version %>/terraform_<%= latest_version %>_SHA256SUMS.sig">
verify the checksums signature file
</a>
which has been signed using <a href="https://hashicorp.com/security.html" target="_TOP">HashiCorp's GPG key</a>.
You can also <a href="https://releases.hashicorp.com/terraform" target="_TOP">download older versions of Terraform</a> from the releases service.
</p>
</div>
</div>
<p> <% product_versions.each do |os, arches| %>
Each release archive is a <code>zip</code> file containing the Terraform binary <div class="row">
executables at the top level. These executables are meant to be extracted <div class="col-md-12 download">
to a location where they can be found by your shell. <div class="icon pull-left"><%= system_icon(os) %></div>
</p> <div class="details">
</div> <h2 class="os-name"><%= pretty_os(os) %></h2>
</div> <ul>
<% product_versions.each do |os, versions| %> <% arches.each do |arch, url| %>
<div class="row"> <li><a href="<%= url %>"><%= pretty_arch(arch) %></a></li>
<div class="col-md-12 download"> <% end %>
<div class="icon pull-left"><%= system_icon(os) %> </ul>
</div> <div class="clearfix"></div>
<div class="details"> </div>
<h2 class="os-name"><%= os %></h2> </div>
<ul> </div>
<% versions.each do |url| %> <% end %>
<li><a href="<%= url %>"><%= arch_for_filename(url) %></a></li>
<% end %>
</ul>
<div class="clearfix">
</div>
</div>
</div>
</div>
<% end %>
<div class="row"> <div class="row">
<div class="col-md-12 poweredby"> <div class="col-md-12 poweredby">
<a href='http://www.bintray.com'> <a href="https://www.fastly.com?utm_source=hashicorp" target="_TOP">
<img src='https://www.bintray.com/docs/images/poweredByBintray_ColorTransparent.png'> <%= image_tag "fastly_logo.png" %>
</a> </a>
</div> </div>
</div> </div>
</section> </section>