Skip to content

Commit

Permalink
Update tf-azure-deploy.yml
Browse files Browse the repository at this point in the history
- Correction to workflow syntax for multiline command
  • Loading branch information
sunny-sidhu-and authored Aug 11, 2023
1 parent 2a6bff1 commit 532b283
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/tf-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ jobs:

# Initialise a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init \
-backend-config="resource_group_name=${{ secrets.TERRAFORM_STATE_RESOURCE_GROUP }}" \
-backend-config="storage_account_name=${{ secrets.TERRAFORM_STATE_STORAGE_ACCOUNT_NAME }}" \
-backend-config="container_name=${{ secrets.TERRAFORM_STATE_STORAGE_CONTAINER_NAME }}" \
-backend-config="key=${{ secrets.TERRAFORM_STATE_KEY }}"
run: >
terraform init
-backend-config="resource_group_name=${{ secrets.TERRAFORM_STATE_RESOURCE_GROUP }}"
-backend-config="storage_account_name=${{ secrets.TERRAFORM_STATE_STORAGE_ACCOUNT_NAME }}"
-backend-config="container_name=${{ secrets.TERRAFORM_STATE_STORAGE_CONTAINER_NAME }}"
-backend-config="key=${{ secrets.TERRAFORM_STATE_KEY }}"
# Checks that all Terraform configuration files adhere to a canonical format
# Will fail the build if not
Expand Down Expand Up @@ -175,4 +176,4 @@ jobs:

# Terraform Apply
- name: Terraform Apply
run: terraform apply -auto-approve tfplan/tfplan
run: terraform apply -auto-approve tfplan/tfplan

0 comments on commit 532b283

Please sign in to comment.