Skip to content

Commit

Permalink
env update
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa6765 committed Jul 1, 2024
1 parent abaa331 commit 29dd0b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/terraform-terragrunt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ jobs:
if [[ "$BRANCH_NAME" == "main" ]]; then
echo "TF_WORKSPACE=prod-project" >> $GITHUB_ENV
echo "TG_WORKDIR=./environment/prod" >> $GITHUB_ENV
elif [[ "$BRANCH_NAME" == "stage-project" ]]; then
elif [[ "$BRANCH_NAME" == "stage" ]]; then
echo "TF_WORKSPACE=stage" >> $GITHUB_ENV
echo "TG_WORKDIR=./environment/prod" >> $GITHUB_ENV
elif [[ "$BRANCH_NAME" == "dev-project" ]]; then
echo "TG_WORKDIR=./environment/stage" >> $GITHUB_ENV
elif [[ "$BRANCH_NAME" == "dev" ]]; then
echo "TF_WORKSPACE=dev" >> $GITHUB_ENV
echo "TG_WORKDIR=./environment/dev" >> $GITHUB_ENV
else
echo "TF_WORKSPACE=default" >> $GITHUB_ENV
echo "TG_WORKDIR=./environment/default" >> $GITHUB_ENV
fi
- name: Set up Terraform CLI
Expand Down

0 comments on commit 29dd0b0

Please sign in to comment.