mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: allow setting appinsights string in core Dockerfile (#3717)
since we are tracking the main flow for Logto Cloud, it is required to pass an ApplicationInsights connection string to make it works.
This commit is contained in:
parent
9f50cc4a80
commit
4b6ad4c8c5
2 changed files with 4 additions and 0 deletions
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -77,6 +77,7 @@ jobs:
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
additional_connector_args=--cloud
|
additional_connector_args=--cloud
|
||||||
|
applicationinsights_connection_string=${{ (inputs.target || 'dev') == 'dev' && secrets.APPLICATIONINSIGHTS_CONNECTION_STRING || secrets.APPLICATIONINSIGHTS_CONNECTION_STRING_PROD }}
|
||||||
|
|
||||||
- name: Setup Depot
|
- name: Setup Depot
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
|
|
@ -16,6 +16,9 @@ COPY . .
|
||||||
### Install dependencies and build ###
|
### Install dependencies and build ###
|
||||||
RUN node .scripts/update-parcelrc.js
|
RUN node .scripts/update-parcelrc.js
|
||||||
RUN pnpm i
|
RUN pnpm i
|
||||||
|
|
||||||
|
ARG applicationinsights_connection_string
|
||||||
|
ENV APPLICATIONINSIGHTS_CONNECTION_STRING=${applicationinsights_connection_string}
|
||||||
RUN pnpm -r build
|
RUN pnpm -r build
|
||||||
|
|
||||||
### Add official connectors ###
|
### Add official connectors ###
|
||||||
|
|
Loading…
Reference in a new issue