hashicorp/tfci

Verified Publisher

By HashiCorp, an IBM Company

Updated about 1 year ago

Container for automating Terraform Cloud API runs and actions in CI environments.

Image
Security
Languages & frameworks
Integration & delivery
1

5M+

hashicorp/tfci repository overview

Supported Platforms

  • GitHub Actions
  • GitLab Pipelines

Usage

Usage depends on if the container is running on a local machine or in a CI environment such as GitHub Actions or GitLab Pipelines.

docker run -it \
  -e "TF_HOSTNAME" \
  -e "TF_API_TOKEN" \
  -e "TF_CLOUD_ORGANIZATION" \
  hashicorp/tfci:latest \
  tfci run show --help

If you desire to mock the container running in a GitHub Actions Runner environment, can do the following by passing environment variables to the container

docker run -it \
  -e "TF_HOSTNAME" \
  -e "TF_API_TOKEN" \
  -e "TF_CLOUD_ORGANIZATION" \
  -e "CI" \
  -e "GITHUB_ACTIONS" \
  -e "GITHUB_OUTPUT" \
  -e "GITHUB_SHA" \
  -e "GITHUB_ACTOR" \
  -e "GITHUB_ACTOR" \
  hashicorp/tfci:latest \
  tfci run show --help

Tag summary

Content type

Image

Digest

sha256:57fead054

Size

7.1 MB

Last updated

about 1 year ago

Requires Docker Desktop 4.37.1 or later.

This week's pulls

Pulls:

123,142

Jun 1 to Jun 7