@@ -180,6 +180,7 @@ stages:
180
180
- stage : Build
181
181
variables :
182
182
# You can find notes in the READMEs around which values to use for each ENV variable group
183
+ - group : azure-sp-creds
183
184
- group : stacks-infra-credentials-nonprod
184
185
- group : stacks-credentials-nonprod-kv
185
186
- group : stacks-java-api
@@ -287,10 +288,10 @@ stages:
287
288
docker_image_tag : " ${{ variables.docker_image_tag }}"
288
289
docker_container_registry_name : " ${{ variables.docker_container_registry_name_nonprod }}"
289
290
# Azure
290
- azure_client_id : " $(azure-client-id )"
291
- azure_client_secret : " $(azure-client-secret )"
292
- azure_tenant_id : " $(azure-tenant-id )"
293
- azure_subscription_id : " $(azure-subscription-id )"
291
+ azure_client_id : " $(ARM_CLIENT_ID )"
292
+ azure_client_secret : " $(ARM_CLIENT_SECRET )"
293
+ azure_tenant_id : " $(ARM_TENANT_ID )"
294
+ azure_subscription_id : " $(ARM_SUBSCRIPTION_ID )"
294
295
295
296
# Post build tasks, such as Test and Coverage upload, and publishing artefacts
296
297
- template : templates/steps/build/post-build-tasks.yml
@@ -370,19 +371,19 @@ stages:
370
371
pipeline_scripts_directory : " ${{ variables.self_pipeline_scripts_dir }}"
371
372
docker_terraform_container : " terraform_custom"
372
373
# Azure Credenitals (For Deploying)
373
- azure_client_id : " $(azure-client-id )"
374
- azure_client_secret : " $(azure-client-secret )"
375
- azure_tenant_id : " $(azure-tenant-id )"
376
- azure_subscription_id : " $(azure-subscription-id )"
374
+ azure_client_id : " $(ARM_CLIENT_ID )"
375
+ azure_client_secret : " $(ARM_CLIENT_SECRET )"
376
+ azure_tenant_id : " $(ARM_TENANT_ID )"
377
+ azure_subscription_id : " $(ARM_SUBSCRIPTION_ID )"
377
378
# Terraform
378
379
terraform_directory : ' $(self_repo_tf_dir)'
379
380
# Backend Azure State Storage Credentials
380
381
# Change these if your state storage is in a different
381
382
# location to your deployment
382
- terraform_backend_azure_client_id : " $(azure-client-id )"
383
- terraform_backend_azure_client_secret : " $(azure-client-secret )"
384
- terraform_backend_azure_tenant_id : " $(azure-tenant-id )"
385
- terraform_backend_azure_subscription_id : " $(azure-subscription-id )"
383
+ terraform_backend_azure_client_id : " $(ARM_CLIENT_ID )"
384
+ terraform_backend_azure_client_secret : " $(ARM_CLIENT_SECRET )"
385
+ terraform_backend_azure_tenant_id : " $(ARM_TENANT_ID )"
386
+ terraform_backend_azure_subscription_id : " $(ARM_SUBSCRIPTION_ID )"
386
387
terraform_state_rg : ${{ variables.tf_state_rg }}
387
388
terraform_state_storage : ${{ variables.tf_state_storage }}
388
389
terraform_state_container : ${{ variables.tf_state_container }}
@@ -497,10 +498,10 @@ stages:
497
498
additional_args : " -no-empty" ,
498
499
},
499
500
]
500
- azure_client_id : " $(azure-client-id )"
501
- azure_client_secret : " $(azure-client-secret )"
502
- azure_tenant_id : " $(azure-tenant-id )"
503
- azure_subscription_id : " $(azure-subscription-id )"
501
+ azure_client_id : " $(ARM_CLIENT_ID )"
502
+ azure_client_secret : " $(ARM_CLIENT_SECRET )"
503
+ azure_tenant_id : " $(ARM_TENANT_ID )"
504
+ azure_subscription_id : " $(ARM_SUBSCRIPTION_ID )"
504
505
aks_cluster_resourcegroup : " ${{ variables.aks_cluster_resourcegroup }}"
505
506
aks_cluster_name : " ${{ variables.aks_cluster_name }}"
506
507
# Used to do a `kubectl rollout status`
@@ -669,10 +670,10 @@ stages:
669
670
arguments : >
670
671
-a "$(docker_image_name):$(docker_image_tag)"
671
672
-b "$(k8s_docker_registry_nonprod)"
672
- -c "$(azure-subscription-id )"
673
- -d "$(azure-client-id )"
674
- -e "$(azure-client-secret )"
675
- -f "$(azure-tenant-id )"
673
+ -c "$(ARM_SUBSCRIPTION_ID )"
674
+ -d "$(ARM_CLIENT_ID )"
675
+ -e "$(ARM_CLIENT_SECRET )"
676
+ -f "$(ARM_TENANT_ID )"
676
677
-g "$(k8s_docker_registry_prod)"
677
678
-h "$(prod-azure-subscription-id)"
678
679
-i "$(prod-azure-client-id)"
0 commit comments