@@ -270,7 +270,6 @@ stages:
270
270
pullrequest_number : " $(pullrequest_number)"
271
271
# Sonar
272
272
sonar_enable : true
273
- # Set to false to speed up validation of deploy stage, revert once done
274
273
sonar_container : " sonar_scanner"
275
274
sonar_host_url : " https://sonarcloud.io"
276
275
sonar_project_name : " $(SONAR_PROJECT_NAME)"
@@ -330,7 +329,8 @@ stages:
330
329
331
330
- stage : Dev
332
331
dependsOn : Build
333
- condition : and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master'))
332
+ # TODO: Change back to ne master
333
+ condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
334
334
variables :
335
335
- group : azure-sp-creds
336
336
- group : stacks-acr-creds
@@ -561,7 +561,8 @@ stages:
561
561
562
562
- stage : Prod
563
563
dependsOn : Build
564
- condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
564
+ # TODO: Change back to eq master
565
+ condition : and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master'))
565
566
variables :
566
567
- group : azure-sp-creds
567
568
- group : stacks-acr-creds
@@ -613,6 +614,8 @@ stages:
613
614
runOnce :
614
615
deploy :
615
616
steps :
617
+ - download : none
618
+
616
619
- checkout : self
617
620
618
621
- checkout : templates
@@ -622,19 +625,19 @@ stages:
622
625
pipeline_scripts_directory : " ${{ variables.self_pipeline_scripts_dir }}"
623
626
docker_terraform_container : " terraform_custom"
624
627
# Azure Credenitals (For Deploying)
625
- azure_client_id : " $(prod-azure-client-id )"
626
- azure_client_secret : " $(prod-azure-client-secret )"
627
- azure_tenant_id : " $(prod-azure-tenant-id )"
628
- azure_subscription_id : " $(prod-azure-subscription-id )"
628
+ azure_client_id : " $(ARM_CLIENT_ID )"
629
+ azure_client_secret : " $(ARM_CLIENT_SECRET )"
630
+ azure_tenant_id : " $(ARM_TENANT_ID )"
631
+ azure_subscription_id : " $(ARM_SUBSCRIPTION_ID )"
629
632
# Terraform
630
633
terraform_directory : ' $(self_repo_tf_dir)'
631
634
# Backend Azure State Storage Credentials
632
635
# Change these if your state storage is in a different
633
636
# location to your deployment
634
- terraform_backend_azure_client_id : " $(prod-azure-client-id )"
635
- terraform_backend_azure_client_secret : " $(prod-azure-client-secret )"
636
- terraform_backend_azure_tenant_id : " $(prod-azure-tenant-id )"
637
- terraform_backend_azure_subscription_id : " $(prod-azure-subscription-id )"
637
+ terraform_backend_azure_client_id : " $(ARM_CLIENT_ID )"
638
+ terraform_backend_azure_client_secret : " $(ARM_CLIENT_SECRET )"
639
+ terraform_backend_azure_tenant_id : " $(ARM_TENANT_ID )"
640
+ terraform_backend_azure_subscription_id : " $(ARM_SUBSCRIPTION_ID )"
638
641
terraform_state_rg : ${{ variables.tf_state_rg }}
639
642
terraform_state_storage : ${{ variables.tf_state_storage }}
640
643
terraform_state_container : ${{ variables.tf_state_container }}
@@ -688,6 +691,8 @@ stages:
688
691
runOnce :
689
692
deploy :
690
693
steps :
694
+ - download : none
695
+
691
696
- checkout : self
692
697
693
698
- checkout : templates
@@ -703,10 +708,10 @@ stages:
703
708
-e "$(ARM_CLIENT_SECRET)"
704
709
-f "$(ARM_TENANT_ID)"
705
710
-g "$(k8s_docker_registry_prod)"
706
- -h "$(prod-azure-subscription-id )"
707
- -i "$(prod-azure-client-id )"
708
- -j "$(prod-azure-client-secret )"
709
- -k "$(prod-azure-tenant-id )"
711
+ -h "$(ARM_SUBSCRIPTION_ID )"
712
+ -i "$(ARM_CLIENT_ID )"
713
+ -j "$(ARM_CLIENT_SECRET )"
714
+ -k "$(ARM_TENANT_ID )"
710
715
-Z "false"
711
716
displayName : Promote Docker Image to Production ACR
712
717
@@ -747,6 +752,8 @@ stages:
747
752
runOnce :
748
753
deploy :
749
754
steps :
755
+ - download : none
756
+
750
757
- checkout : self
751
758
752
759
- checkout : templates
@@ -787,10 +794,10 @@ stages:
787
794
additional_args : " -no-empty" ,
788
795
},
789
796
]
790
- azure_client_id : " $(prod-azure-client-id )"
791
- azure_client_secret : " $(prod-azure-client-secret )"
792
- azure_tenant_id : " $(prod-azure-tenant-id )"
793
- azure_subscription_id : " $(prod-azure-subscription-id )"
797
+ azure_client_id : " $(ARM_CLIENT_ID )"
798
+ azure_client_secret : " $(ARM_CLIENT_SECRET )"
799
+ azure_tenant_id : " $(ARM_TENANT_ID )"
800
+ azure_subscription_id : " $(ARM_SUBSCRIPTION_ID )"
794
801
aks_cluster_resourcegroup : " ${{ variables.aks_cluster_resourcegroup }}"
795
802
aks_cluster_name : " ${{ variables.aks_cluster_name }}"
796
803
# Used to do a `kubectl rollout status`
@@ -828,7 +835,8 @@ stages:
828
835
dependsOn :
829
836
- Build
830
837
- Prod
831
- condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['create_release'], 'true'))
838
+ # TODO: Change back to eq master
839
+ condition : and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['create_release'], 'true'))
832
840
variables :
833
841
- group : stacks-infra-credentials-nonprod
834
842
jobs :
0 commit comments