diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf4a98c2e..ee55cb7f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: | additional_connector_args=--cloud + applicationinsights_connection_string=${{ (inputs.target || 'dev') == 'dev' && secrets.APPLICATIONINSIGHTS_CONNECTION_STRING || secrets.APPLICATIONINSIGHTS_CONNECTION_STRING_PROD }} - name: Setup Depot if: ${{ startsWith(github.ref, 'refs/tags/') }} diff --git a/Dockerfile b/Dockerfile index 4b5385781..94619413d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,9 @@ COPY . . ### Install dependencies and build ### RUN node .scripts/update-parcelrc.js RUN pnpm i + +ARG applicationinsights_connection_string +ENV APPLICATIONINSIGHTS_CONNECTION_STRING=${applicationinsights_connection_string} RUN pnpm -r build ### Add official connectors ###