Skip to content

Commit

Permalink
chore: remove gpg for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lsagetlethias committed Jan 16, 2025
1 parent 68d3999 commit 42edaa4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions db/seed/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Staging seed for app <app_name>
# Staging seed for app `<app_name>`

This directory contains seed data for the app <app_name>. 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 `<app_name>`. 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](<source_repo_url>).
2 changes: 1 addition & 1 deletion scalingo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
14 changes: 9 additions & 5 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 42edaa4

Please sign in to comment.