Skip to content

Commit ee5e92e

Browse files
committed
reference variables from azure-sp-creds
1 parent cc66a3b commit ee5e92e

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

build/azDevOps/azure/azure-pipelines-javaspring-k8s.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ stages:
180180
- stage: Build
181181
variables:
182182
# You can find notes in the READMEs around which values to use for each ENV variable group
183+
- group: azure-sp-creds
183184
- group: stacks-infra-credentials-nonprod
184185
- group: stacks-credentials-nonprod-kv
185186
- group: stacks-java-api
@@ -287,10 +288,10 @@ stages:
287288
docker_image_tag: "${{ variables.docker_image_tag }}"
288289
docker_container_registry_name: "${{ variables.docker_container_registry_name_nonprod }}"
289290
# 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)"
294295

295296
# Post build tasks, such as Test and Coverage upload, and publishing artefacts
296297
- template: templates/steps/build/post-build-tasks.yml
@@ -370,19 +371,19 @@ stages:
370371
pipeline_scripts_directory: "${{ variables.self_pipeline_scripts_dir }}"
371372
docker_terraform_container: "terraform_custom"
372373
# 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)"
377378
# Terraform
378379
terraform_directory: '$(self_repo_tf_dir)'
379380
# Backend Azure State Storage Credentials
380381
# Change these if your state storage is in a different
381382
# 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)"
386387
terraform_state_rg: ${{ variables.tf_state_rg }}
387388
terraform_state_storage: ${{ variables.tf_state_storage }}
388389
terraform_state_container: ${{ variables.tf_state_container }}
@@ -497,10 +498,10 @@ stages:
497498
additional_args: "-no-empty",
498499
},
499500
]
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)"
504505
aks_cluster_resourcegroup: "${{ variables.aks_cluster_resourcegroup }}"
505506
aks_cluster_name: "${{ variables.aks_cluster_name }}"
506507
# Used to do a `kubectl rollout status`
@@ -669,10 +670,10 @@ stages:
669670
arguments: >
670671
-a "$(docker_image_name):$(docker_image_tag)"
671672
-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)"
676677
-g "$(k8s_docker_registry_prod)"
677678
-h "$(prod-azure-subscription-id)"
678679
-i "$(prod-azure-client-id)"

0 commit comments

Comments
 (0)