From 4aefb52dd1525732f5d86c7fce4a88dba4a85960 Mon Sep 17 00:00:00 2001 From: Tsvi Zandany Date: Mon, 4 Nov 2024 20:56:35 -0600 Subject: [PATCH] Update GitHub Actions permissions and revise revision suffixes for production and staging environments --- .github/workflows/cd.yml | 2 +- terraform/production/terraform.tfvars | 2 +- terraform/staging/terraform.tfvars | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4bdb888..53f1d90 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -123,7 +123,7 @@ jobs: permissions: actions: read id-token: write # This is required for requesting the JWT - contents: read # This is required for actions/checkout + contents: write # This is required for actions/checkout and the create-release action runs-on: ubuntu-latest environment: diff --git a/terraform/production/terraform.tfvars b/terraform/production/terraform.tfvars index 2f24d4b..cee0c62 100644 --- a/terraform/production/terraform.tfvars +++ b/terraform/production/terraform.tfvars @@ -3,7 +3,7 @@ resource_group_name = "tsvi-rg" container_app_name = "tsvi-demo-movie" container_registry = "ghcr.io/octodemo/dotnet-razor-pages-movie" image_tag = "latest" -revision_suffix = "20241020-80-blue-v5" +revision_suffix = "20241020-80-blue-v6" container_app_environment = "/subscriptions/f0be368c-6f60-4a3d-bcdc-049da77355a3/resourceGroups/tsvi-rg/providers/Microsoft.App/managedEnvironments/managedEnvironment-tsvirg-b3db" sql_server_name = "tsvi-db" sql_server_id = "/subscriptions/f0be368c-6f60-4a3d-bcdc-049da77355a3/resourceGroups/tsvi-rg/providers/Microsoft.Sql/servers/tsvi-db" diff --git a/terraform/staging/terraform.tfvars b/terraform/staging/terraform.tfvars index bfda10c..cbf3352 100644 --- a/terraform/staging/terraform.tfvars +++ b/terraform/staging/terraform.tfvars @@ -3,7 +3,7 @@ resource_group_name = "tsvi-rg" container_app_name = "tsvi-demo-movie-staging" container_registry = "ghcr.io/octodemo/dotnet-razor-pages-movie" image_tag = "latest" -revision_suffix = "20241020-80" +revision_suffix = "20241020-80-green-v6" container_app_environment = "/subscriptions/f0be368c-6f60-4a3d-bcdc-049da77355a3/resourceGroups/tsvi-rg/providers/Microsoft.App/managedEnvironments/managedEnvironment-tsvirg-b3db" sql_server_name = "tsvi-db" sql_server_id = "/subscriptions/f0be368c-6f60-4a3d-bcdc-049da77355a3/resourceGroups/tsvi-rg/providers/Microsoft.Sql/servers/tsvi-db"