Skip to content

Commit

Permalink
v1.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Jul 24, 2021
1 parent 0b6948a commit 85ac985
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,28 @@ These input values must be the same as any `terraform-plan` for the same configu
- Type: string
- Optional

* `TERRAFORM_PRE_RUN`

A set of commands that will be ran prior to `terraform init`. This can be used to customise the environment before running terraform.

The runtime environment for these actions is subject to change in minor version releases. If using this environment variable, specify the minor version of the action to use.

The runtime image is currently based on `debian:buster`

For example:
```yaml
env:
TERRAFORM_PRE_RUN: |
# Install latest Azure CLI
curl -skL https://aka.ms/InstallAzureCLIDeb | bash
# Install postgres client
apt-get install -y --no-install-recommends postgresql-client
```

- Type: string
- Optional

* `TERRAFORM_HTTP_CREDENTIALS`

Credentials that will be used for fetching modules sources with `git::http://`, `git::https://`, `http://` & `https://` schemes.
Expand All @@ -248,6 +270,12 @@ These input values must be the same as any `terraform-plan` for the same configu
For example:
```yaml
env:
TERRAFORM_PRE_RUN: |
# Install latest Azure CLI
curl -skL https://aka.ms/InstallAzureCLIDeb | bash
# Install postgres client
apt-get install -y --no-install-recommends postgresql-client
TERRAFORM_HTTP_CREDENTIALS: |
example.com=dflook:${{ secrets.HTTPS_PASSWORD }}
github.com/dflook/terraform-github-actions.git=dflook-actions:${{ secrets.ACTIONS_PAT }}
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ inputs:

runs:
using: docker
image: docker://danielflook/terraform-github-actions@sha256:19e04ec3a52cc95e11f637e0f48661079e4ac0f534d45c1238600c746d5b0f94
image: docker://danielflook/terraform-github-actions@sha256:c98e0c3326bc4947ef37341e38d2239e6c87f53f6720f8b6ec99d2b86360ec8a
entrypoint: /entrypoints/apply.sh

branding:
Expand Down

0 comments on commit 85ac985

Please sign in to comment.