diff --git a/.github/workflows/ci-pipeline.yaml b/.github/workflows/ci-pipeline.yaml index 87760b6..5d4c9e9 100644 --- a/.github/workflows/ci-pipeline.yaml +++ b/.github/workflows/ci-pipeline.yaml @@ -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