diff --git a/.github/workflows/pr_env.yaml b/.github/workflows/pr_env.yaml index eeb65c5ab6..5e25774c67 100644 --- a/.github/workflows/pr_env.yaml +++ b/.github/workflows/pr_env.yaml @@ -26,6 +26,7 @@ jobs: with: image_name: trento-web tag: ${{ github.event.pull_request.number }}-env + MIX_ENV: demo create-pr-environment: name: Create or update the pr environment @@ -101,6 +102,7 @@ jobs: nginx_ssl_key_as_base64='true' \ nginx_ssl_cert='${{ secrets.PR_ENV_SSL_CERT }}' \ nginx_ssl_key='${{ secrets.PR_ENV_SSL_CERT_KEY }}' \ + posthog_api_key='${{ secrets.POSTHOG_API_KEY_DEMO }}' \ install_method='docker'" run-photofinish-demo-env: diff --git a/config/demo.exs b/config/demo.exs index 29bacc7847..a7731a6988 100644 --- a/config/demo.exs +++ b/config/demo.exs @@ -37,3 +37,8 @@ config :trento, Trento.Infrastructure.SoftwareUpdates.MockSuma, # 5870 matches to "vmhdbdev01.l15cqsinwnpu5gfyrf1r5l51fe.ax.internal.cloudapp.net" fqdn 5870 ] + +config :trento, :analytics, + enabled: true, + analytics_key: System.get_env("POSTHOG_API_KEY"), + analytics_url: "https://eu.posthog.com" \ No newline at end of file