From 42edaa452c82eae65c991c0fb85c7a5aed085ef9 Mon Sep 17 00:00:00 2001 From: Lilian Saget-Lethias Date: Thu, 16 Jan 2025 22:01:50 +0100 Subject: [PATCH] chore: remove gpg for now --- TODO.md | 1 + db/seed/README.md | 4 ++-- scalingo.json | 2 +- src/config.ts | 14 +++++++++----- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/TODO.md b/TODO.md index 1bcaf20..4bde820 100644 --- a/TODO.md +++ b/TODO.md @@ -30,6 +30,7 @@ - [ ] possibilité de recover un fichier supprimé (si fonction de suppression) - [ ] possibilité de rollback à une version précédente (ajout d'une version rollback comme nouvelle version) - [x] anticiper le fait d'avoir plusieurs mentions legales si plusieurs produit (d'ou le "[variableId]"), sinon "default" par défaut +- [ ] GPG pour les commits ## Navigation |- Accueil diff --git a/db/seed/README.md b/db/seed/README.md index 85dffdd..ba0db79 100644 --- a/db/seed/README.md +++ b/db/seed/README.md @@ -1,5 +1,5 @@ -# Staging seed for app +# Staging seed for app `` -This directory contains seed data for the app . The seed data is used to populate the "database" (aka Git) with initial data when the app is deployed. +This directory contains seed data for the app ``. The seed data is used to populate the "database" (aka Git) with initial data when the app is deployed. The seed data is stored in the `db/seed` directory from [source repo](). diff --git a/scalingo.json b/scalingo.json index b355181..46ac866 100644 --- a/scalingo.json +++ b/scalingo.json @@ -16,7 +16,7 @@ } ], "scripts": { - "first-deploy": "yarn seed" + "first-deploy": "NODE_ENV=development yarn install --frozen-lockfile && NODE_ENV=production yarn seed && rm -rf node_modules" }, "env": { "APP_ENV": { diff --git a/src/config.ts b/src/config.ts index b5cef46..45026c4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -78,11 +78,15 @@ export const config = { process.env.TEMPLATES_GIT_URL, "https://github.com/incubateur-ademe/legal-site-templates-test", ), - gpgPrivateKey: ensureApiEnvVar(process.env.TEMPLATES_GIT_GPG_PRIVATE_KEY, ""), - gpgPassphrase: ensureApiEnvVar(process.env.TEMPLATES_GIT_GPG_PASSPHRASE, ""), - author: { - email: ensureApiEnvVar(process.env.TEMPLATES_GIT_AUTHOR_EMAIL, "bot@email.com"), - name: ensureApiEnvVar(process.env.TEMPLATES_GIT_AUTHOR_NAME, "Bot"), + // gpgPrivateKey: ensureApiEnvVar(process.env.TEMPLATES_GIT_GPG_PRIVATE_KEY, ""), + get gpgPrivateKey() { + console.warn("TEMPLATES_GIT_GPG_PRIVATE_KEY is not supported yet"); + return ""; + }, + // gpgPassphrase: ensureApiEnvVar(process.env.TEMPLATES_GIT_GPG_PASSPHRASE, ""), + get gpgPassphrase() { + console.warn("TEMPLATES_GIT_GPG_PASSPHRASE is not supported yet"); + return ""; }, committer: { email: ensureApiEnvVar(process.env.TEMPLATES_GIT_COMMITTER_EMAIL, "bot@email.com"),