From 8902b6abfc264e28ce742295c8787da405fac961 Mon Sep 17 00:00:00 2001 From: Benjamin Chiverton Date: Mon, 1 Jul 2024 13:26:21 +0100 Subject: [PATCH] Add env config to avoid container environment creation --- .github/workflows/config/container-environment-config.yaml | 2 ++ .github/workflows/instance-deploy-prod.yml | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 .github/workflows/config/container-environment-config.yaml diff --git a/.github/workflows/config/container-environment-config.yaml b/.github/workflows/config/container-environment-config.yaml new file mode 100644 index 0000000..3006337 --- /dev/null +++ b/.github/workflows/config/container-environment-config.yaml @@ -0,0 +1,2 @@ +properties: + managedEnvironmentId: /subscriptions/c57c2a02-297d-4f68-979b-1960df722627/resourceGroups/onlinestore-shared-rg/providers/Microsoft.App/managedEnvironments/onlinestore-containerapps diff --git a/.github/workflows/instance-deploy-prod.yml b/.github/workflows/instance-deploy-prod.yml index 8a75c68..e0c7c26 100644 --- a/.github/workflows/instance-deploy-prod.yml +++ b/.github/workflows/instance-deploy-prod.yml @@ -115,6 +115,7 @@ jobs: - name: Deploy api uses: azure/container-apps-deploy-action@v1 with: + yamlConfigPath: .github/workflows/config/container-environment-config.yaml acrName: onlinestorecontainerregistry acrUsername: ${{ secrets.ACR_USERNAME }} acrPassword: ${{ secrets.ACR_TOKEN }} @@ -127,6 +128,7 @@ jobs: - name: Deploy website uses: azure/container-apps-deploy-action@v1 with: + yamlConfigPath: .github/workflows/config/container-environment-config.yaml acrName: onlinestorecontainerregistry acrUsername: ${{ secrets.ACR_USERNAME }} acrPassword: ${{ secrets.ACR_TOKEN }}