Skip to content

Commit

Permalink
Updated CI az login to environment variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
johncollinson2001 committed Sep 16, 2024
1 parent 5eb88c5 commit 0f0945f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
with:
terraform_version: 1.9.3

- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Terraform Init
run: terraform init -backend=true -backend-config="resource_group_name=rg-nhsbackup" -backend-config="storage_account_name=satfstate729585701" -backend-config="container_name=tfstate" -backend-config="key=terraform.tfstate"
working-directory: infrastructure
env:
ARM_TENANT_ID: $(AZURE_TENANT_ID)
ARM_CLIENT_ID: $(AZURE_CLIENT_ID)
ARM_CLIENT_SECRET: $(AZURE_CLIENT_SECRET)
ARM_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID)

- name: Terraform Validate
run: terraform validate
Expand Down

0 comments on commit 0f0945f

Please sign in to comment.