Skip to content

Commit

Permalink
adding config + pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorOKane-Kainos committed Jul 5, 2024
1 parent 945c719 commit d34aa89
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
run: |
az account show
# Debug step to list files in components directory
- name: List files in components directory
run: ls -la components

- name: Terraform Init
working-directory: components
env:
Expand All @@ -50,12 +54,14 @@ jobs:
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.DCD_CFT_SANDBOX_SUBSCRIPTION }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: terraform plan -var-file="terraform.tfvars"
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
run: terraform plan -var="github_token=${{ secrets.PAT_TOKEN }}"

- name: Terraform Apply
working-directory: components
env:
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.DCD_CFT_SANDBOX_SUBSCRIPTION }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: terraform apply -var-file="terraform.tfvars" -auto-approve
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
run: terraform apply -var="github_token=${{ secrets.PAT_TOKEN }}" -auto-approve

0 comments on commit d34aa89

Please sign in to comment.