From a688b242ea47de836e6a4809591cd12a5da3691a Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 20 Mar 2023 14:32:24 +0800 Subject: [PATCH] chore: set app insights connection string in cloud Dockerfile (#3536) --- .github/workflows/release.yml | 1 + Dockerfile.cloud | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5787354d..ff658b6e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,6 +134,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: | admin_endpoint=https://auth.logto.${{ inputs.target == 'prod' && 'io' || 'dev' }}/ + applicationinsights_connection_string=${{ secrets.APPLICATIONINSIGHTS_CONNECTION_STRING }} deploy-core: runs-on: ubuntu-latest diff --git a/Dockerfile.cloud b/Dockerfile.cloud index 85086bac0..edd864266 100644 --- a/Dockerfile.cloud +++ b/Dockerfile.cloud @@ -23,6 +23,8 @@ ENV CONSOLE_PUBLIC_URL=/ ENV IS_CLOUD=1 ARG admin_endpoint ENV ADMIN_ENDPOINT=${admin_endpoint} +ARG applicationinsights_connection_string +ENV APPLICATIONINSIGHTS_CONNECTION_STRING=${applicationinsights_connection_string} RUN pnpm prepack RUN pnpm -r --filter @logto/console --filter @logto/cloud build