Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Feb 5, 2025
1 parent dd219f6 commit 9deea51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
function_app_name: ${{ steps.extract-terraform-outputs.outputs.FUNCTION_APP_NAME }}
environment: ${{ steps.set-env-vars.outputs.ENVIRONMENT }}
gh_managed_identity_client_id: ${{ steps.extract-terraform-outputs.outputs.AZURE_GH_MANAGED_IDENTITY_CLIENT_ID }}
TF_WORKSPACE: ${{ steps.set-env-vars.outputs.TF_WORKSPACE }}
WORKSPACE: ${{ steps.set-env-vars.outputs.WORKSPACE }}

steps:
- name: Checkout Code
Expand All @@ -55,11 +55,11 @@ jobs:
exit 1
fi
echo "ENVIRONMENT=$ENVIRONMENT" >> $GITHUB_OUTPUT
echo "ENVIRONMENT=$ENVIRONMENT" >> "$GITHUB_OUTPUT"
TF_WORKSPACE="${BASE_NAME}-${ENVIRONMENT,,}"
echo "TF_WORKSPACE=$TF_WORKSPACE" >> $GITHUB_ENV
echo "TF_WORKSPACE=$TF_WORKSPACE" >> $GITHUB_OUTPUT
echo "WORKSPACE=$TF_WORKSPACE" >> "$GITHUB_OUTPUT"
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
run: |
echo RESOURCE_GROUP_NAME=$(terraform output -raw resource_group_name) >> $GITHUB_ENV
echo FUNCTION_APP_NAME=$(terraform output -raw function_app_name) >> $GITHUB_ENV
echo AZURE_GH_MANAGED_IDENTITY_CLIENT_ID=$(terraform output -raw gh_uai_client_id) >> $GITHUB_OUTPUT
echo AZURE_GH_MANAGED_IDENTITY_CLIENT_ID=$(terraform output -raw gh_uai_client_id) >> "$GITHUB_OUTPUT"
- name: Debug
run: |
Expand All @@ -122,7 +122,7 @@ jobs:

env:
TF_CLOUD_ORGANIZATION: ${{ secrets.TF_CLOUD_ORGANIZATION }}
TF_WORKSPACE: ${{ needs.terraform.outputs.TF_WORKSPACE }}
TF_WORKSPACE: ${{ needs.terraform.outputs.WORKSPACE }}

outputs:
azure_functionapp_publish_profile: ${{ steps.get-publish-profile.outputs.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
--name ${{ needs.terraform.outputs.function_app_name }} \
--resource-group ${{ needs.terraform.outputs.resource_group_name }} \
--xml > publish_profile.xml
echo "AZURE_FUNCTIONAPP_PUBLISH_PROFILE=$(cat publish_profile.xml)" >> $GITHUB_OUTPUT
echo "AZURE_FUNCTIONAPP_PUBLISH_PROFILE=$(cat publish_profile.xml)" >> "$GITHUB_OUTPUT"
deploy-code:
name: Deploy Function App Code
Expand Down

0 comments on commit 9deea51

Please sign in to comment.