Skip to content

Commit

Permalink
Add gcp auth to delete review app workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RMcVelia committed Nov 26, 2024
1 parent b835a42 commit f80e745
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/delete-review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS_REVIEW }}

- uses: google-github-actions/auth@v2
with:
project_id: teaching-qualifications
workload_identity_provider: projects/708780292301/locations/global/workloadIdentityPools/check-childrens-barred-list/providers/check-childrens-barred-list

- name: Set Environment variables
run: |
terraform_version=$(awk '/{/{f=/^terraform/;next}f' terraform/aks/terraform.tf | grep -o [0-9\.]*)
Expand All @@ -40,6 +45,7 @@ jobs:
# echo "key_vault_name=$(jq -r '.key_vault_name' ${tf_vars_file})" >> $GITHUB_ENV
# echo "key_vault_app_secret_name=$(jq -r '.key_vault_app_secret_name' ${tf_vars_file})" >> $GITHUB_ENV
# echo "key_vault_infra_secret_name=$(jq -r '.key_vault_infra_secret_name' ${tf_vars_file})" >> $GITHUB_ENV
- name: Use Terraform ${{ env.TERRAFORM_VERSION }}
uses: hashicorp/setup-terraform@v3
with:
Expand All @@ -61,6 +67,7 @@ jobs:
run: |
az storage blob delete -c terraform-state --name ${{ env.TF_STATE_FILE }} \
--account-name "s189t01ccbltfstatervsa"
- name: Update ${{ matrix.environment }} status
id: deactivate-env
if: ${{ always() && env.TF_STATE_EXISTS == 'true' }}
Expand Down

0 comments on commit f80e745

Please sign in to comment.