File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ stages:
4545 args : >
4646 -f kubernetes
4747 -v image_tag=$(Build.BuildId)
48+ -v dotnet_environment=Staging
4849 --output-files manifests/staging
4950 - task : ShellScript@2
5051 displayName : Generate Production Manifest
@@ -54,6 +55,7 @@ stages:
5455 -f kubernetes
5556 -v image_tag=$(Build.BuildId)
5657 -v replica_count=2
58+ -v dotnet_environment=Production
5759 --output-files manifests/production
5860 - task : PublishPipelineArtifact@1
5961 displayName : Publish Manifests
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ image_tag: latest
77container_port : 80
88service_port : 80
99replica_count : 1
10+ dotnet_environment : Development
Original file line number Diff line number Diff line change 2121 image : # @ "{}:{}".format(data.values.image_name, data.values.image_tag)
2222 ports :
2323 - containerPort : # @ int(data.values.container_port)
24+ env :
25+ - name : DOTNET_ENVIRONMENT
26+ value : # @ data.values.dotnet_environment
2427 replicas : # @ int(data.values.replica_count)
2528---
2629apiVersion : v1
You can’t perform that action at this time.
0 commit comments