From 5ebf76adcc3969f43b8e379713c20d7384830795 Mon Sep 17 00:00:00 2001 From: Kristina Devochko Date: Sun, 31 Mar 2024 21:26:58 +0200 Subject: [PATCH] chore: update helloworld app traffic distribution Signed-off-by: Kristina Devochko --- .../deploy-aca-revision-and-traffic-management.yaml | 2 +- aca-revision-and-traffic-management/modules/aca.bicep | 2 +- .../parameters/dev.bicepparam | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-aca-revision-and-traffic-management.yaml b/.github/workflows/deploy-aca-revision-and-traffic-management.yaml index fa22d9d..295a824 100644 --- a/.github/workflows/deploy-aca-revision-and-traffic-management.yaml +++ b/.github/workflows/deploy-aca-revision-and-traffic-management.yaml @@ -7,7 +7,7 @@ on: - 'main' paths: - 'aca-revision-and-traffic-management/**' - - '.github/workflows/deploy-aca-revision-and-traffic-management-apps.yml' + - '**/deploy-aca-revision-and-traffic-management-apps.yml' workflow_dispatch: diff --git a/aca-revision-and-traffic-management/modules/aca.bicep b/aca-revision-and-traffic-management/modules/aca.bicep index ccd6b7d..09c8f69 100644 --- a/aca-revision-and-traffic-management/modules/aca.bicep +++ b/aca-revision-and-traffic-management/modules/aca.bicep @@ -39,7 +39,7 @@ resource helloworld 'Microsoft.App/containerApps@2023-05-02-preview' = { env: [ { name: 'TITLE' - value: 'Hello World from Azure Container Apps (ACA)!' + value: 'Hello World from Azure Container Apps (ACA) - V2!' } ] probes: [ diff --git a/aca-revision-and-traffic-management/parameters/dev.bicepparam b/aca-revision-and-traffic-management/parameters/dev.bicepparam index 7a4dce5..2a435e8 100644 --- a/aca-revision-and-traffic-management/parameters/dev.bicepparam +++ b/aca-revision-and-traffic-management/parameters/dev.bicepparam @@ -11,10 +11,12 @@ param tags = { param trafficDistribution = [ { latestRevision: true - weight: 100 + weight: 50 } - /*{ - revisionName: '' + { + revisionName: 'aca-helloworld--f8u0hny' weight: 50 - }*/ + } ] + +// Command to get revision name: az containerapp revision list --name aca-helloworld --resource-group rg-aca-helloworld-neu-dev --query [0].name -o tsv