-
-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathTERRAFORM_PRE_RUN.py
More file actions
24 lines (18 loc) · 777 Bytes
/
TERRAFORM_PRE_RUN.py
File metadata and controls
24 lines (18 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from action import EnvVar
TERRAFORM_PRE_RUN = EnvVar(
name='TERRAFORM_PRE_RUN',
description='''
A set of commands that will be ran prior to `$ToolName init`. This can be used to customise the environment before running $ProductName.
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:bookworm`, with the command run using `bash -xeo pipefail`.
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
```
'''
)