Skip to content

Commit

Permalink
workdir tg
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa6765 committed Jul 1, 2024
1 parent 8a624f6 commit ab38816
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/terraform-terragrunt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
BRANCH_NAME=${GITHUB_REF#refs/heads/}
if [[ "$BRANCH_NAME" == "main" ]]; then
echo "TF_WORKSPACE=prod-project" >> $GITHUB_ENV
echo "TG_WORKDIR=environment/prod" >> $GITHUB_ENV
echo "TG_WORKDIR=environment/stage" >> $GITHUB_ENV
elif [[ "$BRANCH_NAME" == "stage" ]]; then
echo "TF_WORKSPACE=stage" >> $GITHUB_ENV
echo "TF_WORKSPACE=stage-project" >> $GITHUB_ENV
echo "TG_WORKDIR=environment/stage" >> $GITHUB_ENV
elif [[ "$BRANCH_NAME" == "dev" ]]; then
echo "TF_WORKSPACE=dev" >> $GITHUB_ENV
echo "TF_WORKSPACE=dev-project" >> $GITHUB_ENV
echo "TG_WORKDIR=environment/dev" >> $GITHUB_ENV
else
echo "TF_WORKSPACE=default" >> $GITHUB_ENV
Expand Down

0 comments on commit ab38816

Please sign in to comment.