Skip to content

gohypergiant/install-terraform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install-terraform

Install Terraform to a Github Actions job environment.

GitHub Actions status

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

  • version: The version of terraform to install. Default: 0.12.21

Outputs

None.

Example workflow

name: Example installing Terraform

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [12.x]

    steps:
    - uses: actions/checkout@v1
    - name: Install Terraform
      uses: little-core-labs/install-terraform@v1
    - name: Terraform apply
      run: |
        terraform init
        terraform plan
        terraform apply -auto-approve

License

The scripts and documentation in this project are released under the MIT License

About

Install terraform to the current GitHub Actions job

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 56.1%
  • Shell 43.9%