Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/little-core-labs/install-terraform
Install terraform to the current GitHub Actions job
https://github.com/little-core-labs/install-terraform
actions github install terraform workflow
Last synced: about 21 hours ago
JSON representation
Install terraform to the current GitHub Actions job
- Host: GitHub
- URL: https://github.com/little-core-labs/install-terraform
- Owner: little-core-labs
- License: mit
- Created: 2020-02-28T01:16:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-21T21:57:15.000Z (almost 2 years ago)
- Last Synced: 2025-01-07T22:08:21.832Z (5 days ago)
- Topics: actions, github, install, terraform, workflow
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/install-terraform
- Size: 185 KB
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# install-terraform
Install Terraform to a Github Actions job environment.## Usage
### Pre-requisites
Create a workflow `.yml` file in your repositories `.github/workflows` directory. An [example workflow](#example-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).### Inputs
- `version`: The version of terraform to install. Required.
### Outputs
None.
### Example workflow
```yaml
name: Example installing Terraformon: [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/[email protected]
with:
version: 0.13.4
- name: Terraform apply
run: |
terraform init
terraform plan
terraform apply -auto-approve
```## FAQ
### Can you offer a major version tag/branch alias? I want automatic updates!
Nope! This was always weird/bad pattern of github actions. Luckily github offers a solution for this. Create a `.github/dependabot.yml` with, at a minimum, the following config:
```yaml
# Basic dependabot.yml file with
# minimum configuration for two package managersversion: 2
updates:
# Enable updates to github actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"```
## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)