From c26197649d3172cc817833d8d916edfa8b87ceed Mon Sep 17 00:00:00 2001 From: LionelB Date: Fri, 11 Sep 2020 10:37:42 +0200 Subject: [PATCH] feat(frontend): add sentry release info --- targets/frontend/.k8s/environments/dev/www-env.configmap.yaml | 2 +- targets/frontend/.k8s/environments/prod/www-env.configmap.yaml | 2 +- targets/frontend/src/pages/_app.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/targets/frontend/.k8s/environments/dev/www-env.configmap.yaml b/targets/frontend/.k8s/environments/dev/www-env.configmap.yaml index 1358423e2..79e8cea34 100644 --- a/targets/frontend/.k8s/environments/dev/www-env.configmap.yaml +++ b/targets/frontend/.k8s/environments/dev/www-env.configmap.yaml @@ -6,7 +6,7 @@ data: ACCOUNT_MAIL_SENDER: "contact@fabrique.social.gouv.fr" FRONTEND_URL: "https://${HOST}" FRONTEND_PORT: "${PORT}" - CI_COMMIT_SHA: "${CI_COMMIT_SHA}" + CI_COMMIT_SHORT_SHA: "${CI_COMMIT_SHORT_SHA}" GRAPHQL_ENDPOINT: "http://hasura-cdtn-admin/v1/graphql" NEXT_PUBLIC_ACTIVATION_TOKEN_EXPIRES: "10080" NODE_ENV: "production" diff --git a/targets/frontend/.k8s/environments/prod/www-env.configmap.yaml b/targets/frontend/.k8s/environments/prod/www-env.configmap.yaml index 5747b8011..5597f99d6 100644 --- a/targets/frontend/.k8s/environments/prod/www-env.configmap.yaml +++ b/targets/frontend/.k8s/environments/prod/www-env.configmap.yaml @@ -6,7 +6,7 @@ data: ACCOUNT_MAIL_SENDER: "contact@fabrique.social.gouv.fr" FRONTEND_URL: "https://${HOST}" FRONTEND_PORT: "${PORT}" - CI_COMMIT_SHA: "${CI_COMMIT_SHA}" + CI_COMMIT_SHORT_SHA: "${CI_COMMIT_SHORT_SHA}" GRAPHQL_ENDPOINT: "http://hasura-cdtn-admin/v1/graphql" NEXT_PUBLIC_ACTIVATION_TOKEN_EXPIRES: "10080" NODE_ENV: "production" diff --git a/targets/frontend/src/pages/_app.js b/targets/frontend/src/pages/_app.js index f6aa24d59..c5ce15f02 100644 --- a/targets/frontend/src/pages/_app.js +++ b/targets/frontend/src/pages/_app.js @@ -31,6 +31,7 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN) { }, }), ], + release: process.env.CI_COMMIT_SHORT_SHA, }); }