Skip to content

Commit d80d145

Browse files
committed
fix: update targetLabel to 'stage' for container app configuration
1 parent 1736597 commit d80d145

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

infra/api.bicep

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resource containerApp 'Microsoft.App/containerApps@2025-10-02-preview' = {
7474
managedEnvironmentId: containerAppEnvironmentId
7575
configuration: {
7676
activeRevisionsMode: 'Labels'
77-
targetLabel: 'production'
77+
targetLabel: 'stage'
7878
maxInactiveRevisions: 5
7979
registries: [
8080
{
@@ -88,8 +88,12 @@ resource containerApp 'Microsoft.App/containerApps@2025-10-02-preview' = {
8888
allowInsecure: false
8989
traffic: [
9090
{
91-
label: 'production'
91+
label: 'stage'
9292
latestRevision: true
93+
weight: 0
94+
}
95+
{
96+
label: 'production'
9397
weight: 100
9498
}
9599
]

infra/ui.bicep

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resource containerApp 'Microsoft.App/containerApps@2025-10-02-preview' = {
2626
managedEnvironmentId: containerAppEnvironmentId
2727
configuration: {
2828
activeRevisionsMode: 'Labels'
29-
targetLabel: 'production'
29+
targetLabel: 'stage'
3030
maxInactiveRevisions: 5
3131
registries: [
3232
{
@@ -40,8 +40,12 @@ resource containerApp 'Microsoft.App/containerApps@2025-10-02-preview' = {
4040
allowInsecure: false
4141
traffic: [
4242
{
43-
label: 'production'
43+
label: 'stage'
4444
latestRevision: true
45+
weight: 0
46+
}
47+
{
48+
label: 'production'
4549
weight: 100
4650
}
4751
]

0 commit comments

Comments
 (0)