Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEVEX-108] Add optional parameter to PR infra workflow #12

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/infra_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
description: Azure region where the resources will be deployed.
type: string
required: true
base_path:
description: The base path on which the script will look for Terraform projects
type: string
required: false
balanza marked this conversation as resolved.
Show resolved Hide resolved
env_vars:
description: List of environment variables to set up, given in env=value format.
type: string
Expand Down Expand Up @@ -51,10 +55,10 @@ jobs:
echo "Both environment and region must be provided."
exit 1
else
# The directory is expected to be in the format
# The directory is expected to be in the format
# infra/resources/${{ inputs.environment }}/${{ inputs.region }}
# Example: infra/resources/prod/westeurope
echo "dir=infra/resources/${{ inputs.environment }}/${{ inputs.region }}" >> $GITHUB_OUTPUT
echo "dir=${{ inputs.base_path}}/${{ inputs.environment }}/${{ inputs.region }}" >> $GITHUB_OUTPUT
fi

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr_infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
with:
environment: prod
region: westeurope
base_path: infra/resources
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ terraform apply
#### resources

Contains the actual resources for the developed applications.
Configurations are intended for the pair (environment, region); each configuration is a Terraform project in the folder `infra/identity/<env>/<region>`
Configurations are intended for the pair (environment, region); each configuration is a Terraform project in the folder `infra/resources/<env>/<region>`

⚠️ The following edits have to be done to work on the repository:

Expand Down
Loading