hashicorp/tfci
Container for automating Terraform Cloud API runs and actions in CI environments.
1M+
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
docker pull hashicorp/tfci