Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

Setup HashiCorp Releases

v1.0.3

Setup HashiCorp Releases

terminal

Setup HashiCorp Releases

Download and setup binary from releases.hashicorp.com in a GitHub Actions build environment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup HashiCorp Releases

uses: bloominlabs/setup-hashicorp-releases@v1.0.3

Learn more about this action in bloominlabs/setup-hashicorp-releases

Choose a version

Setup Hashicorp Releases - GitHub Action

This repository contains an action for use with GitHub Actions, which installs a a package from releases.hashicorp.com with a semver-compatible version.

The package is installed into /home/runner/.{package} (or equivalent on Windows) and the bin subdirectory is added to the PATH.

Usage

Install the latest version of the envconsul:

- name: Install envconsul
  uses: bloominlabs/setup-hashicorp-releases@v1
  with:
    package: envconsul

Install a specific version of the envconsul:

- name: Install envconsul
  uses: bloominlabs/setup-hashicorp-releases@v1
  with:
    package: envconsul
    version: 0.12.1

Install a version that adheres to a semver range

- name: Install envconsul
  uses: bloominlabs/setup-hashicorp-releases@v1
  with:
    package: envconsul
    version: ^0.12.0

Testing

You can test this action locally using act. See the repo for more instructions.

Configuration

The action can be configured with the following arguments:

  • package - The package to install. See https://releases.hashicorp.com/index.json for all available packages.
  • version (optional) - The version of the package to install. Default is latest. Accepts semver style values.